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

From: Date: Thu, 26 Jul 2001 18:44:22 +0000
Subject: Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61094@lists.php.net to get a copy of this message
ID: 12407 Updated by: andy Reported By: zheng@sfsu.edu Old Status: Open Status: Analyzed Bug Type: *General Issues Operating System: win2000 PHP Version: 4.0.6 New Comment: reproduced. If you put the if and else statement between the same <? ?> tags, it works fine. Previous Comments: ------------------------------------------------------------------------ [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.dev (#61094) next »