Re: Re: __autoload() enhancement
| From: | Andrey Hristov | Date: | Tue, 05 Apr 2005 15:32:01 +0000 |
| Subject: | Re: Re: __autoload() enhancement | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15822@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
Hello Andrey, Tuesday, April 5, 2005, 5:21:17 PM, you wrote:for the record, he mentioned stack not stacktrace :) AndreyStanislav Malyshev wrote:I completeley agree with Stanislav here, way to much magic: The engine should never fumble around with a trace before making it accessible.GB>>call stack, as if the user had inserted the call to the new GB>>__autoload() before the last closing }. Too much magic, IMO. All you need to know is the list of functions, you don't need any 'stack' since they do not call each one.Stanislav, a stack is a list and a list is a stack, right ? :)Wrong, by list we mean all registered autoload functions which can be retrived by 'print_r(spl_autoload_functions())' and the stack trace from main to the autoload call. Marcus,