Re: Re: __autoload() enhancement
| From: | Marcus Boerger | Date: | Tue, 05 Apr 2005 09:43:11 +0000 |
| Subject: | Re: Re: __autoload() enhancement | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15810@lists.php.net to get a copy of this message | ||
Hello Greg,
Monday, April 4, 2005, 2:04:47 PM, you wrote:
> Andrey Hristov wrote:
>> Stanislav,
>> Greg probable means something like a stack trace of the autload callbacks
>> that were called. This will be a nice addition just like Exception
>> stacktraces
>> are (I wish there were stacktraces for Fatal errors).
> yes, a stack trace would be ideal - I knew there was a name for that
> thing I was describing :)
A stack trace is only some additional information that has no real added
information. Also it is not a real stack trace since what you asked is
just a list of functions called at one level and not the trace up to
that part where a class was missing (which would be a stack trace).
After my last commit you can get a stack trace by throwing an exception
in the last called function. To get a list of all functions being called
just check spl_autoload_functions().
A combination of both would require the engine to be changed to be capable
of handling multiple exceptions - which hopefully we do not want. Right
now a second exception while an exception is already pending results in a
fatal error.
--
Best regards,
Marcus mailto:mail@marcus-boerger.de