__autoload and duplicate vars clash

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am rewriting an application to take advantage of the __autoload  
functionality. If I accidentally declare a variable in the parent class  
which was previously declared in a child class, the child class fails on  
load, the script terminates, and no error is given.

Is there anything I can do to show this error and its source?

Re: __autoload and duplicate vars clash

Quoted text here. Click to load it

For development crank up error_reporting and enable display_errors in
php.ini.  For production systems crank up error_reporting, disable
display_errors and turn on log_errors so they go to a file instead of
the browser.

Site Timeline