PHP 4.0 Bug #7852: failure in 'alternate if'

From: Date: Thu, 16 Nov 2000 18:52:28 +0000
Subject: PHP 4.0 Bug #7852: failure in 'alternate if'
Groups: php.dev 
Request: Send a blank email to php-dev+get-38367@lists.php.net to get a copy of this message
From: kapn@kapn.net Operating system: FreeBSD PHP version: 4.0.3pl1 PHP Bug Type: *General Issues Bug description: failure in 'alternate if' The following file will return a parse error at the 'endif;' file1: <!-- testif.html --> <html> <head> <title> alternative if syntax test </title </head> <body> <?php include("testif.seg") ?> <H2>testing alternate if</H2> <?php endif; ?> </body> </html> file2: <!-- testif.seg --> <?php if ($debug): ?> <H2> Debug = <?php echo $debug ?></H2> <?php else: ?> But if I cut and paste the inclusion into the file instead it works fine. <!-- testif2.html --> <html> <head> <title> alternative if syntax test </title </head> <body> <!-- testif.seg --> <?php if ($debug): ?> <H2> Debug = <?php echo $debug ?></H2> <?php else: ?> <H2>testing alternate if</H2> <?php endif; ?> </body> </html> -- Edit Bug report at: http://bugs.php.net/?id=7852&edit=1

« previous php.dev (#38367) next »