ID:               20072
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
-Bug Type:         Scripting Engine problem
+Bug Type:         Feature/Change Request
 Operating System: mandrake-9
 PHP Version:      4.2.3
 New Comment:

the syntax for class method callbacks is

  set_error_handler(array("ErrorClass","handler"))

although i like your idea of how it could look like

moved to feature requests



Previous Comments:
------------------------------------------------------------------------

[2002-10-24 14:17:20] [EMAIL PROTECTED]

set_error_handler() does not accept static class functions 
as a custom error handling function. 
 
set_error_handler('ErrorClass::handler') will not report 
false if called twice in succession.  But it will also not 
route errors through the static class function.  Either it 
should return false so that a script can realize the input 
was not handled properly, or it should route errors 
throught the static class function. 

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20072&edit=1

Reply via email to