note 57045 added to function.set-error-handler
| From: | ia | Date: | Thu, 22 Sep 2005 11:33:35 +0000 |
| Subject: | note 57045 added to function.set-error-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95594@lists.php.net to get a copy of this message | ||
as reply to dawiddr at gmail dot com:
Be careful with this when using __autoload(). When there is some error during parsing the file
included in __autoload() so an exception is thrown, it results in following error:
Fatal error: Function __autoload(ClassName) threw an exception of type 'Exception' in
/network/webroot/dev/test.php on line 121
It is because exceptions can't be thrown in __autoload().
See __autoload() documentation (http://www.php.net/autoload) and bug #31102
(http://bugs.php.net/bug.php?id=31102&edit=3)
----
Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57045
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57045&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57045&report=yes
Search -- http://master.php.net/manage/user-notes.php