#41166 [NEW]: fpassthru and the other read-Funktions are very very slow

From: Date: Sun, 22 Apr 2007 20:18:50 +0000
Subject: #41166 [NEW]: fpassthru and the other read-Funktions are very very slow
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111786@lists.php.net to get a copy of this message
From: alex dot taeffner at vr-web dot de Operating system: Debian Linux PHP version: 5.2.1 PHP Bug Type: Sockets related Bug description: fpassthru and the other read-Funktions are very very slow Description: ------------ Every Function which reads the answar of a TCP-Server Completely (since the last read (Pointer-Position to EOF)) hangs very long while executing the script. fputs($TS_link, "help\n"); Well... If I write print fread($TS_link, 1024); The Script returns the LAST line: OK If I write fpassthru($TS_link); The Script loads more than a minute and returns ALL LINES since the last read. It doesnt matter if there are yust two lines or een one line or if there are 100 lines to read. Even if I write while (!feof($TS_link)) { print fgets($TS_link); } or while (!feof($TS_link)) { print fread($TS_link); } It is the same Problem. It occurs whith every possibility. -- Edit bug report at http://bugs.php.net/?id=41166&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41166&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41166&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41166&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41166&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41166&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41166&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41166&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41166&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41166&r=support Expected behavior: http://bugs.php.net/fix.php?id=41166&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41166&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41166&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41166&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41166&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41166&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41166&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41166&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41166&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41166&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41166&r=mysqlcfg

« previous php.bugs (#111786) next »