Bug #18413: Cobination of nested IF statement fails
| From: | mark at pictura-dp dot nl | Date: | Thu, 18 Jul 2002 15:47:46 +0000 |
| Subject: | Bug #18413: Cobination of nested IF statement fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14536@lists.php.net to get a copy of this message | ||
From: mark@pictura-dp.nl
Operating system: Linux SuSE 8.0
PHP version: 4.2.1
PHP Bug Type: Scripting Engine problem
Bug description: Cobination of nested IF statement fails
I think nothing's wrong with the following syntax:
<?php
$foo="bug?";
if($foo=="nobug"):
echo "No Bug :)";
elseif(substr($foo,0,3)=="bug"):
if($foo=="bug?") {
echo "Bug :(";
}
else:
echo "No problem!";
endif;
?>
But it results in a parse error, unexpected ':'.
Mark Lindeman
the Netherlands
--
Edit bug report at http://bugs.php.net/?id=18413&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18413&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18413&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18413&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18413&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18413&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18413&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18413&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18413&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18413&r=globals