__autoload() and exceptions
| From: | Brandon Savage | Date: | Fri, 20 Nov 2009 19:51:38 +0000 |
| Subject: | __autoload() and exceptions | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969381142@lists.php.net to get a copy of this message | ||
All,
I was playing around today with the autoload functions and I discovered that in PHP 5.3,
__autoload() can throw, and scripts can catch, exceptions.
This is in direct contradiction to the documentation: http://php.net/manual/en/language.oop5.autoload.php
I have filed a bug report with the internals team (http://bugs.php.net/bug.php?id=50250) in the
event that this behavior is unintended; however, if this is in fact a new feature in PHP 5.3, I want
to make sure that we document it properly.
Does anyone know the true story?
Brandon
================================
Brandon J. Savage
brandon@brandonsavage.net
Phone: 202.658.7866
Blog: www.brandonsavage.net
"Character may be manifested in the great mountains, but it is made in the small ones." ~
Phillip Brook