#6082 [Com]: User defined error handler should be avare if function was prefixed with @
| From: | graced at monroe dot wednet dot edu | Date: | Mon, 20 Jun 2005 18:25:12 +0000 |
| Subject: | #6082 [Com]: User defined error handler should be avare if function was prefixed with @ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80713@lists.php.net to get a copy of this message | ||
ID: 6082
Comment by: graced at monroe dot wednet dot edu
Reported By: marten at jerbro dot se
Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0 Latest CVS (10/08/2000)
New Comment:
error_reporting() will always return 0 when in the context of code
prefixed by "@"
" It is important to remember that the standard PHP error handler is
completely bypassed. error_reporting() settings will have no effect and
your error handler will be called regardless - however you are still
able to read the current value of error_reporting and act
appropriately. Of particular note is that this value will be 0 if the
statement that caused the error was prepended by the @ error-control
operator."
See: http://us2.php.net/manual/en/function.set-error-handler.php
Previous Comments:
------------------------------------------------------------------------
[2000-08-10 17:13:51] marten at jerbro dot se
I think user defined error handlers should be told if an error occurred
inside a function that was prefixed with @.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=6082&edit=1