Is there a PHP configuration setting that would prevent use of variable before it's set? -
i have following code:
<?php if ($foo) { echo $foo; } ?>
however, page throwing 500 internal server error (i know means there's error being logged , page aborting prematurely) not have access error log (as host logging syslog).
i can fix doing following:
<?php if (isset($foo) && $foo) { echo $foo; } ?>
but that's not question. there server setting kill page attempting use unset variable? afaik, logs 'notice', not enough kill page.
here first bit of phpinfo() output (disclaimer: have no windows + fastcgi setup experience)
update added custom error handler , output $errno , $errstr. expected, e_notice (8) message 'undefined variable'. i'm guessing 500 internal error has how it's logging syslog.
implement custom error handler , can you'd (mostly)!
Comments
Post a Comment