php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6082 User defined error handler should be avare if function was prefixed with @
Submitted: 2000-08-10 17:13 UTC Modified: 2006-04-03 09:42 UTC
From: marten at jerbro dot se Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (10/08/2000) OS: Any
Private report: No CVE-ID: None
 [2000-08-10 17:13 UTC] 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 @.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-20 20:25 UTC] graced at monroe dot wednet dot edu
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
 [2006-04-03 09:42 UTC] tony2001@php.net
See previous comment.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 25 16:00:02 2025 UTC