note 59468 added to function.error-reporting

From: Date: Wed, 07 Dec 2005 19:11:53 +0000
Subject: note 59468 added to function.error-reporting
Groups: php.notes 
Request: Send a blank email to php-notes+get-99698@lists.php.net to get a copy of this message
It is easy to get into the habbit of thinking E_ALL includes anything. Remember, that ^ is the NOT of whatever is there. E_ALL ^ E_STRICT probably doesn't do what you want it to do, and in fact, does the exact same thing as E_ALL | E_STRICT. I was lowering error reporting for a short time and had $errorlevel = error_reporting(E_ALL^E_STRICT); ... error_reporting($errorlevel); and it took me a couple minutes to find that error. ---- Manual Page -- http://www.php.net/manual/en/function.error-reporting.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59468 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59468&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59468&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99698) next »