|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-07-16 22:29 UTC] jani@php.net
Description:
------------
The following script works with plain CGI setup.
It also works fine with Apache 2.2 module.
It does not work with FastCGI setup.
Regression of ug #34429
Reproduce code:
---------------
<html>
<body>
<?php
for ($i = 1; $i < 6; $i++)
{
echo " ----------------- $i ----------------<br />\n";
sleep(1);
flush();
}
?>
</body>
</html>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 15:00:01 2025 UTC |
PHP itself works fine. The "strace" of PHP process shows that each line is sent separatly. write(4, "\1\6\324\224\0r\6\0X-Powered-By: PHP/5.2.4-"..., 128) = 128 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 2 ---"..., 56) = 56 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 3 ---"..., 56) = 56 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 4 ---"..., 56) = 56 The problem may be in Web Browser, Web Server or FastCGI manager.