From:             fabiogsilva at fabio0101 dot x-br dot com
Operating system: Linux/Windows
PHP version:      Irrelevant
PHP Bug Type:     Output Control
Bug description:  Output is retained and is not sent immediately to client

Description:
------------
To illustrate the problem, I'll write a script that sends two JavaScript
blocks that capture the client's current date.

I have written this code with and without buffer control, and the result
is the same.

Reproduce code:
---------------
<script>
var init_date = new Date();
</script>

<?
//Waiting 5 seconds to send the next JavaScript block...
sleep(5);
?>

<script>
var end_date = new Date();
alert("Init Date: " + init_date + "\nEnd Date: " + end_date);
</script>


Expected result:
----------------
The two dates should not be the same, because the first block  would be
sent immediately, and the 2nd one 5 seconds later.

Actual result:
--------------
The two dates are the same. I have not experienced this problem with other
languages such as ASP and Perl.

-- 
Edit bug report at http://bugs.php.net/?id=28182&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28182&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28182&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28182&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28182&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28182&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28182&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28182&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28182&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28182&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28182&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28182&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28182&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28182&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28182&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28182&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28182&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28182&r=float

Reply via email to