Connecting Tech Pros Worldwide Forums | Help | Site Map

__autoload and duplicate vars clash

turnitup
Guest
 
Posts: n/a
#1: Oct 18 '07
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?

ZeldorBlat
Guest
 
Posts: n/a
#2: Oct 18 '07

re: __autoload and duplicate vars clash


On Oct 18, 5:34 am, turnitup <same@samewrote:
Quote:
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.

Closed Thread