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

Reply via email to