php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29632 Error on a correct if-then-else
Submitted: 2004-08-12 15:49 UTC Modified: 2004-08-29 01:00 UTC
From: mezzymeat at mindblast dot nu Assigned:
Status: No Feedback Package: *General Issues
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mezzymeat at mindblast dot nu
New email:
PHP Version: OS:

 

 [2004-08-12 15:49 UTC] mezzymeat at mindblast dot nu
Description:
------------
The error is for a line that CAN look like this:

if (condition) { do something }
elseif (condition) { do something else }

The error disappears when it's changed to

if (condition) {
 do something
} elseif (condition) {
 do something else
}

The error does then NOT appear when the if-then-else is changed back. The if-then-else can contain an else { } just as well, this was just an example.


Expected result:
----------------
No error

Actual result:
--------------
Parse error: parse error, unexpected T_VARIABLE

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-17 15:35 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2004-08-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 12:01:32 2024 UTC