Bug #15589: include() output order is weird
| From: | webmaster at rosenkeller dot org | Date: | Sat, 16 Feb 2002 23:59:56 +0000 |
| Subject: | Bug #15589: include() output order is weird | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-440@lists.php.net to get a copy of this message | ||
From: webmaster@rosenkeller.org
Operating system: Linux (SuSE 7.0)
PHP version: 4.1.1
PHP Bug Type: Unknown/Other Function
Bug description: include() output order is weird
Hi,
I've just stumbled across this problem:
I have a few pages which all include one file that does some functionality
needed for session management. Now I have a problem in one of these pages
(the other ones seem to work): the output from the included file is not
completely output before the "including" script continues; instead, I have
something like this:
### output from include()
### rest of the "including" file
### output from include() (remaining portion).
In short, the last thing the included file should output is "</table>".
But I get everything until "</", then the output from the including file,
then "table>".
In "long": I have put the concerned scripts at
https://members.rosenkeller.org/phpbug/
The file "logout.php" includes "session.php". The corresponding
"logout-src.php" and "session-src.php" simply show the source code of the
respective file; I have also included phpinfo.php which shows the results
of phpinfo().
If you have a look at the HTML source that output.php produces, you should
see what I mean (the "warning: undefined variable" is normal, because
there is no session).
I think that this is a bug; if I overlooked something instead (maybe some
configuration option?) I'd be pleased to hear what it is...
Thank you in advance, and keep the great work up! :-)
--
Edit bug report at http://bugs.php.net/?id=15589&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15589&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15589&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15589&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15589&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15589&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15589&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15589&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15589&r=submittedtwice