Re: Re: __autoload() enhancement

From: Date: Tue, 05 Apr 2005 15:30:36 +0000
Subject: Re: Re: __autoload() enhancement
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-15821@lists.php.net to get a copy of this message
Hello Andrey, Tuesday, April 5, 2005, 5:21:17 PM, you wrote: > Stanislav Malyshev wrote: >> 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. I completeley agree with Stanislav here, way to much magic: The engine should never fumble around with a trace before making it accessible. >> > 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. -- Best regards, Marcus mailto:mail@marcus-boerger.de

« previous php.internals (#15821) next »