PHP 4.0 Bug #7131: Undocumented change in behaviour of alternate syntax
| From: | diego at otello dot alma dot unibo dot it | Date: | Wed, 11 Oct 2000 09:37:20 +0000 |
| Subject: | PHP 4.0 Bug #7131: Undocumented change in behaviour of alternate syntax | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34651@lists.php.net to get a copy of this message | ||
From: diego@otello.alma.unibo.it
Operating system: Linux (RH7.0)
PHP version: 4.0.3RC2
PHP Bug Type: *General Issues
Bug description: Undocumented change in behaviour of alternate syntax
This used to work with PHP3 and stopped when I upgraded to PHP4. Seems that require() doesen't
support opening a block in the included file an closing it in the block that contains the require()
itself. Maybe a short example could explain it better...
In test.inc :
<?php
if(1):
?>
ABC
In test.php3 :
><?php
require("test.inc");
echo "Test OK";
endif;
?>
With php3 it worked ("ABC Test OK"), with php4 it stops with parse error on last line of
test.inc (sure it doesen't find the expected endif...)
BYtE,
Diego.
--
Edit Bug report at: http://bugs.php.net/?id=7131&edit=1