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,