Bug #18498 Updated: error_reporting doesn't work, but ini_set('error_reporting') does
| From: | derick@php.net | Date: | Tue, 23 Jul 2002 16:48:05 +0000 |
| Subject: | Bug #18498 Updated: error_reporting doesn't work, but ini_set('error_reporting') does | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14910@lists.php.net to get a copy of this message | ||
ID: 18498
Updated by: derick@php.net
Reported By: paul.php@burney.ws
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: RedHat 7.1
PHP Version: 4.2.2
New Comment:
I think this was recently fixed in CVS, can you try the latest stable
snapshot from snaps.php.net, and if that does not work the non-stable
one?
Please report back with your results.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-07-23 12:12:22] paul.php@burney.ws
It would appear that the error_reporting function in PHP 4.2.2 doesn't
work correctly. (Apache 1.3.26)
Here is a sample script. In php.ini, the error level is set to E_ALL ^
E_NOTICE.
<?php
error_reporting(E_ALL);
phpinfo();
?>
In the resulting web page, it shows both the local value and the master
value of error_reporting as 2039, instead of 2047 for the local value.
The following does work correctly:
<?php
ini_set('error_reporting', E_ALL);
phpinfo();
?>
That shows 2047 for the local value and 2039 for the master value.
PHP configuration:
'./configure' '--prefix=/usr/local/php-4.2.2' '--with-mysql=/usr'
'--with-pgsql=/usr' '--enable-trans-sid'
'--with-config-file-path=/usr/local/php' '--with-zlib' '--enable-yp'
'--enable-ftp' '--enable-magic-quotes' '--enable-force-cgi-redirect'
'--enable-discard-path' '--with-kerberos'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18498&edit=1