From:             [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:      4.2.2
PHP Bug Type:     Output Control
Bug description:  flush not working after setting session id

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 bug report at http://bugs.php.net/?id=20037&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20037&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20037&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20037&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20037&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20037&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20037&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20037&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20037&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20037&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20037&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20037&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20037&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20037&r=isapi

Reply via email to