ID: 48402 User updated by: aaron dot chmelik at gmail dot com Reported By: aaron dot chmelik at gmail dot com -Status: Feedback +Status: Open Bug Type: PHP options/info functions Operating System: Mac OSX 10.5.6 PHP Version: 5.2.9 New Comment:
I missed this before: display_errors: Off This is both for local value and master value. I've checked my php.ini, httpd.conf, and .htaccess files. .htaccess doesn't seem to have anything on errors, httpd.conf and php.ini both have display_errors = On Previous Comments: ------------------------------------------------------------------------ [2009-06-02 21:55:42] [email protected] Now check and double check your configuration under Apache by running <? php phpinfo(); ?> in same directory where the problematic script is. Check all error reporting and logging settings values. I bet you have somewhere in the path some .htaccess file or somewhere in your httpd.conf where error reporting is disabled.. ------------------------------------------------------------------------ [2009-06-02 18:47:58] aaron dot chmelik at gmail dot com Error reporting worked perfect when run in the command line. ------------------------------------------------------------------------ [2009-06-02 08:00:03] [email protected] Try running the same script on command line (using either php-cgi or php CLI binary). Like this: # php -n test.php ------------------------------------------------------------------------ [2009-05-29 15:15:34] aaron dot chmelik at gmail dot com display_errors = On log_errors = Off also, error_reporting = E_ALL error_log = php_errors.log I changed log_errors to On, restarted Apache, with the same results. Would also like to mention that my original post should have said "If I comment out the require line, I get the word "Error" echoed from my scripted error checking." Just showing the difference in how fatal and non-fatal errors are being treated. I would also like to note that since I've turned on log_errors, nothing has been logged to the file. ------------------------------------------------------------------------ [2009-05-27 10:09:12] [email protected] Check your display_errors and error_log settings too. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/48402 -- Edit this bug report at http://bugs.php.net/?id=48402&edit=1
