[brozen@torah.org: Bug#75695: Critical difference PHP3 - 4]
| From: | Petr Cech | Date: | Fri, 27 Oct 2000 09:24:44 +0000 |
| Subject: | [brozen@torah.org: Bug#75695: Critical difference PHP3 - 4] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22300@lists.php.net to get a copy of this message | ||
Hi,
was this change in require() functionality intendet? I tried to find
information about it, but no luck.
Thanks
P.S. please CC me
----- Forwarded message from Brock Rozen <brozen@torah.org> -----
From: Brock Rozen <brozen@torah.org>
Subject: Bug#75695: Critical difference PHP3 - 4
Date: Fri, 27 Oct 2000 09:26:07 +0200 (IST)
X-Backup: Disabled
Package: php4
Severity: important
Version: 4.0.3pl1-0potato1
Hi there,
Please take a look at this:
http://zeraim.torah.org/~cblack/testdir/index.php3
http://zeraim.torah.org/~cblack/testdir/index.php3?sid=3
Now, try these:
http://terumah.teamgenesis.com/~cblack/index.php3
http://terumah.teamgenesis.com/~cblack/index.php3?sid=2
^^^^^^^^ there should be index.php only (Petr)
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, PHP 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.
Thanks!
--
Brock Rozen brozen@torah.org
----- End forwarded message -----
Petr Cech
--
Debian GNU/Linux maintainer - www.debian.{org,cz}
cech@atrey.karlin.mff.cuni.cz
Try: cat /dev/urandom | perl