#20945 [Opn->Fbk]: Parse error is not deteced by PHP
| From: | derick@php.net | Date: | Wed, 11 Dec 2002 20:38:56 +0000 |
| Subject: | #20945 [Opn->Fbk]: Parse error is not deteced by PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27424@lists.php.net to get a copy of this message | ||
ID: 20945
Updated by: derick@php.net
Reported By: tss24@cornell.edu
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-12-11 14:38:20] tss24@cornell.edu
This parse error is not detected by PHP:
if (isset($_POST['rerun')) && $_POST['rerun'] == 1) $script=
'script_rerun';
else $script= 'script_reproduce';
Note the paranthese instead of square bracket in the isset().
When PHP finds this page, it doesn't do anything. It shows a blank
page. This really had me dumb founded, as I tried everything. I even
threw in random text to generate errors, but PHP didn't catch this at
all.
Once I found this bracket and fixed it, everything worked again.
Very odd.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20945&edit=1