Re: __autoload() and exceptions
| From: | Hannes Magnusson | Date: | Fri, 20 Nov 2009 20:05:08 +0000 |
| Subject: | Re: __autoload() and exceptions | ||
| References: | 1 | Groups: | php.doc php.internals |
| Request: | Send a blank email to phpdoc+get-969381143@lists.php.net to get a copy of this message | ||
On Fri, Nov 20, 2009 at 20:51, Brandon Savage <brandon@brandonsavage.net> wrote:
> 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?
Thats a good question, and of the top of top of my head I don't recall
any commits or discussion about this.
So, is this intended behavior as of PHP 5.3.0 or may this change again
in the future?
-Hannes