By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

Why PHP don't Report this SYNTAX ERROR ?

P: n/a
nvn
Hi everyone:

my code is like this:
/------------ file error.php ------------------------------------
<?php

print("first\n");
print("second\n"));
print("third\n");

?>
--------------file error.php------------------------------------/

There is a unmatched ")" in the print "second" line, so the syntax is
error.
But when I execute it, I get nothing, there is no SYNTAX ERROR
report !
So if this error be hidden in a big file, it is hard to find out.
Any one has any good idea ?

Sep 25 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Message-ID:
<23**********************************@s9g2000prg.g ooglegroups.comfrom
nvn contained the following:
>my code is like this:
/------------ file error.php ------------------------------------
<?php

print("first\n");
print("second\n"));
print("third\n");

?>
--------------file error.php------------------------------------/

There is a unmatched ")" in the print "second" line, so the syntax is
error.
But when I execute it, I get nothing, there is no SYNTAX ERROR
report !
Well I get one. Check your error reporting level.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Sep 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.