|
Posted by My Pet Programmer on 12/20/07 08:56
Rob,
I try very hard to stay away from ini-set where possible, but if you do
use it for display errors, "On" is the appropriate INI value.
You didn't the the compile error because your php file is set with:
display_errors = "Off"
And it comes that way. Also, don't worry about trying to screw with
E_ALL and such, I find a simpler way to turn errors on when I need them
is a simple function call:
error_reporting(2047);
If you want to dump your PHP Info, I can have a look for you.
~A!
Rob D took the time to say:
> Hello,
>
> I'm finding an unterminated string error NOT being reported in the
> following script, and I can't understand why, any ideas please:
>
> ini_set('display_errors',TRUE);
> ini_set('display_startup_errors',TRUE);
> ini_set('error_reporting', E_ALL | E_STRICT );
>
> // this error, undefined index, gets reported $test=$_GET['test'];
> echo $test;
> // this error, missing quote, doesn't echo "starting this script;
>
>
> running a phpinfo() query in this file, with the error commented out,
> shows that the error level is set correctly and display errors is on,
> I don't understand why some errors are shown and others not - this
> same code displays the error on a couple of other servers I use with
> no apparent difference in the error levels or reporting type.
>
> Thanks, Rob
Navigation:
[Reply to this message]
|