PHP 4.0 Bug #8211: Incorrect Parsing of <? and ?> tags

From: Date: Tue, 12 Dec 2000 18:12:18 +0000
Subject: PHP 4.0 Bug #8211: Incorrect Parsing of <? and ?> tags
Groups: php.dev 
Request: Send a blank email to php-dev+get-41044@lists.php.net to get a copy of this message
From: rkenny@mke.catalystwms.com Operating system: RedHat Linux 6.1 (kernel 2.2.16-3) PHP version: 4.0.3pl1 PHP Bug Type: Scripting Engine problem Bug description: Incorrect Parsing of &lt;? and ?&gt; tags The following will generate a parse error: <? if ($var == "foo") { ?> <html>some stuff</html> <? } ?> <? else if ($var == "bar" ) { ?> <html>other stuff</html> <? } ?> But this works without error: <? if ($var == "foo") { ?> <html>some stuff</html> <? } else if ($var == "bar" ) { ?> <html>other stuff</html> <? } ?> Any help appreciated. -- Edit Bug report at: http://bugs.php.net/?id=8211&edit=1

« previous php.dev (#41044) next »