Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6
| From: | derick@php.net | Date: | Tue, 18 Jun 2002 10:31:43 +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-11109@lists.php.net to get a copy of this message | ||
ID: 12407
Updated by: derick@php.net
Reported By: zheng@sfsu.edu
-Status: Analyzed
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: win2000
PHP Version: 4.3.0-dev
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
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