php-developer-list | 2000111
Date: 11/09/00
- Next message: brozen <email protected>: "[PHP-DEV] PHP 4.0 Bug #7710 Updated: include'ing doesn't work properly"
- Previous message: ben <email protected>: "[PHP-DEV] PHP 4.0 Bug #7709: possibly memory issues..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: brozen <email protected>
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: include'ing doesn't work properly
Please take a look at this: (php3)
http://zeraim.torah.org/~cblack/testdir/index.php3
http://zeraim.torah.org/~cblack/testdir/index.php3?sid=3
Now, try these: (php4)
http://terumah.teamgenesis.com/~cblack/index.php3
http://terumah.teamgenesis.com/~cblack/index.php3?sid=2
Precisely the same code. PHP on zeraim incorporates the header & footer and then parses all as one, while on terumah it is attempting to parse the header & footer as if they were independent of the file into which they are included.
Or in other words, PHP3 used to incorporate a 'require()ed' file without doing any work on it, and then parsed the whole thing together. So you could have an IF statement in the header [ if (...) { ] that ended in the footer [ } ].
No longer! That's why the same code is generating parse errors.
-- Edit Bug report at: http://bugs.php.net/?id=7710&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: brozen <email protected>: "[PHP-DEV] PHP 4.0 Bug #7710 Updated: include'ing doesn't work properly"
- Previous message: ben <email protected>: "[PHP-DEV] PHP 4.0 Bug #7709: possibly memory issues..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

