__autoload and duplicate vars clash
am 18.10.2007 11:34:39 von turnitup
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
am 18.10.2007 15:02:38 von zeldorblat
On Oct 18, 5:34 am, turnitup wrote:
> 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?
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.