|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-08 13:43 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
Description: ------------ I used fgets/fread to read information from a pipe. then,I wait and wait , and wait . env: windows xp php 5.2 Reproduce code: --------------- $handle = popen('cmd.exe 2>&1', 'r'); do { $data = fgets($handle, 100); if (strlen($data) == 0) { break; } $contents .= $data; }while(true); echo $contents; pclose($handle);