|
Posted by ZeldorBlat on 10/29/07 19:55
On Oct 29, 3:53 pm, Rob D <robdzone-use...@yahoo.co.uk> wrote:
> 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
Because that is a syntax error. PHP can't even compile the code (much
less execute it) so your ini_set() statements are never executed (none
of the code is executed, for that matter). If you want those types of
errors to be displayed you need to set it in php.ini or an .htaccess
file.
Navigation:
[Reply to this message]
|