note 70800 added to function.error-reporting
| From: | Peter at osu1 dot php dot net | Date: | Sat, 28 Oct 2006 19:57:29 +0000 |
| Subject: | note 70800 added to function.error-reporting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119216@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 66.163.161.117
Probable Submitter: 89.241.7.195
----
Manual Page -- http://www.php.net/manual/en/function.error-reporting.php
Edit -- https://master.php.net/note/edit/70800
Del: integrated -- https://master.php.net/note/delete/70800/integrated
Del: useless -- https://master.php.net/note/delete/70800/useless
Del: bad code -- https://master.php.net/note/delete/70800/bad+code
Del: spam -- https://master.php.net/note/delete/70800/spam
Del: non-english -- https://master.php.net/note/delete/70800/non-english
Del: in docs -- https://master.php.net/note/delete/70800/in+docs
Del: other reasons-- https://master.php.net/note/delete/70800
Reject -- https://master.php.net/note/reject/70800
Search -- https://master.php.net/manage/user-notes.php