|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-30 11:26 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2014-12-30 11:26 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
Description: ------------ The following code executes properly on linux while it fails with both 32bit and 64bit windows. The problem on windows is that the "abc" string is not received in the x.php file while outer.php reports that the appropriate number of bytes were successfully written. Test script: --------------- outer.php (this is executed) $handle = popen('php x.php', 'w'); $write = fwrite($handle, "abc\r\n"); fflush($handle); echo $write; sleep(10); pclose($handle); x.php (this receives "abc" on linux, received nothing on windows) do { $c = fgets(STDIN); print($c); } while (!feof(STDIN)); sleep(10); Expected result: ---------------- x.php receives the 5 characters fwrite sent. Actual result: -------------- Data not received.