From: mezzymeat at mindblast dot nu
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: *General Issues
Bug description: Error on a correct if-then-else
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
--
Edit bug report at http://bugs.php.net/?id=29632&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29632&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29632&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29632&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29632&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29632&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29632&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29632&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29632&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29632&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29632&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29632&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29632&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29632&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29632&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29632&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29632&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29632&r=float