|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-08 20:44 UTC] Sjoerd@php.net
[2009-10-08 21:05 UTC] paul at wcclan dot net
[2009-10-08 21:12 UTC] paul at wcclan dot net
[2009-10-09 17:07 UTC] paul at wcclan dot net
[2009-10-10 16:57 UTC] alec at alec dot pl
[2009-10-15 20:28 UTC] radek at pinkbike dot com
[2009-10-19 15:08 UTC] jani@php.net
[2009-10-19 15:15 UTC] jani@php.net
[2009-10-20 06:57 UTC] alec at alec dot pl
[2009-10-22 19:27 UTC] paul at wcclan dot net
[2009-10-22 19:49 UTC] paul at wcclan dot net
[2009-10-23 12:35 UTC] jani@php.net
[2009-10-23 21:35 UTC] srinatar@php.net
[2009-10-23 21:46 UTC] jani@php.net
[2009-10-23 23:31 UTC] jani@php.net
[2009-10-24 00:12 UTC] jani@php.net
[2009-10-24 00:21 UTC] jani@php.net
[2009-10-25 02:28 UTC] magnusf at users dot sourceforge dot net
[2009-10-26 13:05 UTC] jani@php.net
[2009-11-14 22:28 UTC] jani@php.net
[2009-11-15 00:13 UTC] svn@php.net
[2009-11-18 21:19 UTC] paul at wcclan dot net
[2009-11-19 15:59 UTC] jani@php.net
[2010-01-30 15:39 UTC] ben at xnode dot org
[2010-08-07 13:26 UTC] johannes@php.net
-Status: Assigned
+Status: Bogus
-Assigned To: johannes
+Assigned To:
[2010-08-07 13:26 UTC] johannes@php.net
[2010-08-07 13:53 UTC] paul at wcclan dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ Looping through the output of a process opened with popen while using flush return "garbage" in the browser. Using telnet the intended output can be seen in (likely corrupted) chuncked encoding. Commenting out the flush() in below code fixes the problem. Reproduce code: --------------- <? $handle = popen("whois php.net", "r"); if($handle) { while(!feof($handle)) { $buffer = fgets($handle); echo $buffer . "<br />\r\n"; flush(); } pclose($handle); } ?> Expected result: ---------------- the output of the command whois php.net Actual result: -------------- seemingly random garbage in browser. Above script available through: http://ipv6.wcclan.net/test.php