Failed To Open Stream: No such file or directory (application/errors/error_php.php) |
[eluser]J. Pavel Espinal[/eluser]
I have just downloaded a fresh copy of CodeIgniter in order to build a quick application and, while trying to see if had php5-imap library installed I wrote this simple code: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Then, on a very simple controller I tried to invoke that method: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Then, after failing to connect (which is normal, because of the domain used as imap server), it fails to include one CodeIgniter files (error_php.php). This is the output of the script: Quote:bool(false) Is it normal that it fails to reach 'error_php.php' file when the error occurs inside a library? Thanks in advance.
[eluser]J. Pavel Espinal[/eluser]
Interesting enough, if I trigger the error inside the library with fopen() function, the behavior is different (It does finds error_php.php). Ex. Code: public function foo() {
[eluser]J. Pavel Espinal[/eluser]
For the record, imap_open will throw any errors occurred (even if you try to silence it up with "@", e.g. @imap_open(...)) at least that you capture the array of error messages immediately after, with something like: Code: public function foo() { |
Welcome Guest, Not a member yet? Register Sign In |