Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Andrey Hristov
Marcus Boerger wrote: 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 n

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Marcus Boerger
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

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Andrey Hristov
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. Stanislav, a stack is a list and

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Stanislav Malyshev
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 Malyshev, Zend Products Engineer [EMAIL PR

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Greg Beaver
Marcus Boerger wrote: 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 stacktra

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-05 Thread Marcus Boerger
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

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Marcus Boerger
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

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Greg Beaver
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 na

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Andrey Hristov
Stanislav Malyshev wrote: GB>>I meant a logic error - as in the user forgot to use a GB>>DIRECTORY_SEPARATOR and so can't find any of the classes, not an GB>>obvious PHP error. OK - then how exactly you want the error message look like? How the engine is going to guess if it was DIRECTORY_SEPARATO

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Stanislav Malyshev
GB>>I meant a logic error - as in the user forgot to use a GB>>DIRECTORY_SEPARATOR and so can't find any of the classes, not an GB>>obvious PHP error. OK - then how exactly you want the error message look like? How the engine is going to guess if it was DIRECTORY_SEPARATOR missing or the class wa

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Greg Beaver
Stanislav Malyshev wrote: GB>>3. If a library has an obscure bug in __autoload, the only error message GB>>the user will see is: GB>> GB>>"undefined class " GB>> GB>>If __autoload() is going to gain the ability to be defined for a GB>>library, then the error messages must be enhanced as well.

Re: [PHP-DEV] Re: __autoload() enhancement

2005-04-04 Thread Stanislav Malyshev
GB>>3. If a library has an obscure bug in __autoload, the only error message GB>>the user will see is: GB>> GB>>"undefined class " GB>> GB>>If __autoload() is going to gain the ability to be defined for a GB>>library, then the error messages must be enhanced as well. Shouldn't that bug resul