Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 20:52:52 +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-10796@lists.php.net to get a copy of this message | ||
ID: 12407
Updated by: sander@php.net
Reported By: zheng@sfsu.edu
Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: win2000
-PHP Version: 4.0.6
+PHP Version: 4.3.0-dev
Previous Comments:
------------------------------------------------------------------------
[2002-06-16 15:29:08] jason@mercuryboard.com
Reproduced in 4.2.1
------------------------------------------------------------------------
[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