#20945 [Fbk->NoF]: Parse error is not deteced by PHP

From: Date: Fri, 27 Dec 2002 07:00:04 +0000
Subject: #20945 [Fbk->NoF]: Parse error is not deteced by PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28467@lists.php.net to get a copy of this message
ID: 20945 Updated by: php-bugs@lists.php.net Reported By: tss24@cornell.edu -Status: Feedback +Status: No Feedback Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.3 New Comment: No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-12-11 14:38:56] derick@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#28467) next »