|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-11 07:07 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 09 01:00:01 2026 UTC |
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.