Re: [PHP-DEV] Re: throwing exceptions in __autoload

2004-06-25 Thread Robert Janeczek
> most cases, there aren't very good reasons to throw exceptions from it. How > come you can't declare the class when __autoload() is called but you can do > so later? In such a weird situation, you could declare a proxy object with > the same name which relays all calls to the real class if/when y

Re: [PHP-DEV] Re: throwing exceptions in __autoload

2004-06-23 Thread Andi Gutmans
Don't have access to a running version of PHP right now (on vacation) but by design __autoload() isn't supposed to propagate an exception. It's your last chance to load the class and if it fails, then it dies. If this isn't exactly what's happening then there's a problem. The reason for this is,

[PHP-DEV] Re: throwing exceptions in __autoload

2004-06-19 Thread Robert Janeczek
i found http://bugs.php.net/bug.php?id=26193 which explains my problem, but... the reason of problems with catching this exception seems to be no stack frame added. can i set it by myself somehow in derived exception class? my idea to working around this problem is to create temporary class (not