php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20945 Parse error is not deteced by PHP
Submitted: 2002-12-11 14:38 UTC Modified: 2002-12-27 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: tss24 at cornell dot edu Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-11 14:38 UTC] tss24 at cornell dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-11 14:38 UTC] 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-27 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Sep 24 23:05:52 2022 UTC