#29632 [Opn->Fbk]: Error on a correct if-then-else

From: Date: Tue, 17 Aug 2004 13:35:36 +0000
Subject: #29632 [Opn->Fbk]: Error on a correct if-then-else
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64785@lists.php.net to get a copy of this message
ID: 29632 Updated by: tony2001@php.net Reported By: mezzymeat at mindblast dot nu -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2004-08-12 15:49:55] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29632&edit=1

« previous php.bugs (#64785) next »