Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6

From: Date: Sun, 16 Jun 2002 19:29:08 +0000
Subject: Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10792@lists.php.net to get a copy of this message
ID: 12407 Updated by: jason@mercuryboard.com Reported By: zheng@sfsu.edu Status: Analyzed Bug Type: Scripting Engine problem Operating System: win2000 PHP Version: 4.0.6 New Comment: Reproduced in 4.2.1 Previous Comments: ------------------------------------------------------------------------ [2001-07-26 14:44:22] andy@php.net reproduced. If you put the if and else statement between the same <? ?> tags, it works fine. ------------------------------------------------------------------------ [2001-07-26 14:40:01] zheng@sfsu.edu the script below runs correctly in 4.0.5 but there is "parse error" in 4.0.6. It seems that you can't break if else into two parts. <?php if (1==1) echo 1; ?> <? else echo 0; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12407&edit=1

« previous php.bugs (#10792) next »