#18498 [NoF->Fbk]: error_reporting doesn't work, but ini_set('error_reporting') does

From: Date: Sat, 24 Aug 2002 12:33:56 +0000
Subject: #18498 [NoF->Fbk]: 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-17756@lists.php.net to get a copy of this message
ID: 18498 Updated by: sniper@php.net Reported By: paul.php@burney.ws -Status: No Feedback +Status: Feedback Bug Type: Scripting Engine problem Operating System: RedHat 7.1 PHP Version: 4.2.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip You might have just got the snapshot which didn't yet have that fix. So please try this one and be sure to tell use the timestamp it has. (and mark the bug 'Open' when you do that, don't use 'add comment'..) Previous Comments: ------------------------------------------------------------------------ [2002-08-24 01:00:11] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-07-23 16:09:08] paul.php@burney.ws I tried this one: php4-200207231200 and the problem persists. At snaps, it was marked as php-latest.tar.gz, with the most recent timestamp. I didn't see any marked unstable, but I didn't choose the one marked stable. Let me know if I can try additional snapshots. ------------------------------------------------------------------------ [2002-07-23 12:48:05] derick@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#17756) next »