Re: __autoload() and exceptions

From: Date: Fri, 20 Nov 2009 20:10:30 +0000
Subject: Re: __autoload() and exceptions
References: 1 2  Groups: php.doc php.internals 
Request: Send a blank email to internals+get-46129@lists.php.net to get a copy of this message
On Nov 20, 2009, at 3:05 PM, Hannes Magnusson wrote: > 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 Therein seems to lay the question. As I said, I filed a bug, so we'll see if it gets closed as bogus or not. If it does I'll change the documentation myself. Brandon

« previous php.internals (#46129) next »