#39423 [NEW]: fread expired

From: Date: Wed, 08 Nov 2006 06:57:44 +0000
Subject: #39423 [NEW]: fread expired
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104558@lists.php.net to get a copy of this message
From: base5 at 126 dot com Operating system: windows xp PHP version: 5.2.0 PHP Bug Type: Filesystem function related Bug description: fread expired 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); -- Edit bug report at http://bugs.php.net/?id=39423&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39423&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39423&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39423&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39423&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39423&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39423&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39423&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39423&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39423&r=support Expected behavior: http://bugs.php.net/fix.php?id=39423&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39423&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39423&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39423&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39423&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39423&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39423&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39423&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39423&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39423&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39423&r=mysqlcfg

« previous php.bugs (#104558) next »