note 70800 deleted from function.error-reporting by danbrown

From: Date: Fri, 24 Oct 2008 18:36:22 +0000
Subject: note 70800 deleted from function.error-reporting by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145705@lists.php.net to get a copy of this message
Note Submitter: Peter ---- I seem to have found a strange bug if you accidentally use the wrong bitwise numerical value. I am running php 5.1.4 but I used the 8191 numerical value when setting the reporting level. This level is not available in my php version (it only became available in php 5.2.0). I had intended to use the numerical value for E_ALL. When running an application that used pear I received the following error:- Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 563 Strict Standards: Assigning the return value of new by reference is deprecated in /usr/share/pear/PEAR.php on line 566 This error message ONLY displayed the first time the script was invoked. To get the error message back again a server restart had to be carried out. And again after the restart it would only show the first time. In the script when I changed the numerical value with the constant E_ALL I received no error message at all (this was the only thing that was changed between the 2 tests). I have no idea if this is something that was caused by an annomoly in pear or wether it is a problem with the way php handles the bitwise for error reporting.

« previous php.notes (#145705) next »