Bug #48402 [Com]: PHP stopped reporting errors

From: Date: Sat, 23 Apr 2011 23:29:28 +0000
Subject: Bug #48402 [Com]: PHP stopped reporting errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160346@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=48402&edit=1

 ID:                 48402
 Comment by:         aosmith at gmail dot com
 Reported by:        aaron dot chmelik at gmail dot com
 Summary:            PHP stopped reporting errors
 Status:             Bogus
 Type:               Bug
 Package:            PHP options/info functions
 Operating System:   Mac OSX 10.5.6
 PHP Version:        5.2.9
 Block user comment: N
 Private report:     N

 New Comment:

I have to agree with aaron.  I'm having a similar problem in 10.6.7 and
php 
5.3.4.  From phpinfo():

display_errors		On		On
display_startup_errors	On		On
doc_root		no value	no value
docref_ext		no value	no value
docref_root		no value	no value
enable_dl	Off	Off
error_append_string	no value	no value
error_log		no value	no value
error_prepend_string	no value	no value
error_reporting	32767	32767


Previous Comments:
------------------------------------------------------------------------
[2009-06-03 21:17:10] jani@php.net

Obviously this isn't bug, just bad configuration. Check what php.ini is

actually loaded (also mentioned in phpinfo() output) and possibly some 
additional .ini parts.

------------------------------------------------------------------------
[2009-06-02 23:05:01] aaron dot chmelik at gmail dot com

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

------------------------------------------------------------------------
[2009-06-02 21:55:42] jani@php.net

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] jani@php.net

Try running the same script on command line (using either php-cgi or php
 
CLI binary). Like this:

# php -n test.php


------------------------------------------------------------------------


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/bug.php?id=48402


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=48402&edit=1


Thread (9 messages)

« previous php.bugs (#160346) next »