#20037 [Opn->]: flush not working after setting session id
| From: | yohgaki@php.net | Date: | Wed, 23 Oct 2002 23:36:32 +0000 |
| Subject: | #20037 [Opn->]: flush not working after setting session id | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23145@lists.php.net to get a copy of this message | ||
ID: 20037
Updated by: yohgaki@php.net
Reported By: bob@hostelworld.com
-Status: Open
+Status: Won\'t fix
Bug Type: Output Control
Operating System: Solaris 8
PHP Version: 4.2.2
New Comment:
You have mistake in your script, but it does not matter.
Flushing will not work when buffer (trans sid, zlib.compression,
ob_gzhandler, mb_output_handler, etc) is used.
And it will not be fixed, even if I would like to ;)
Don't try to flush.
Previous Comments:
------------------------------------------------------------------------
[2002-10-23 05:40:46] bob@hostelworld.com
Seems that after setting the session id, a flush isnt working.
If you supply a PHPSESSID, then it doesnt output anything until the end
of the script, without the PHPSESSID, then it does what you would
expect, output one stamp, then another after 10 seconds.
<?
if ( $_GET["PHPSESSID"] ) {
$PHPSESSID = $_GET["PHPSESSID"];
session_id($PHPSESSID);
}
session_start();
for($i=0; $i<300; $i++ ) {
echo "\n";
}
echo gmdate("H:i:s");
echo "<BR>";
flush();
sleep(10);
echo gmdate("H:i:s");
echo "<BR>";
?>
'./configure'
'--with-apxs=/usr/local/apache-1.3.26/bin/apxs'
'--with-mysql'
'--with-mhash'
'--enable-track-vars=yes'
'--enable-debug=no'
'--enable-force-cgi-redirect=yes'
'--enable-calendar'
'--with-gd=/export/home/hostel/Installs/gd-1.8.4'
'--with-png-dir=/export/home/hostel/Installs/libpng-1.0.12'
'--with-zlib'
'--with-jpeg-dir=/export/home/hostel/Installs/jpeg-6b'
'--enable-mbstring'
'--enable-mbstr-enc-trans'
'--enable-trans-sid'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20037&edit=1