ID: 27508 Comment by: tthiery at yahoo dot de Reported By: adam at trachtenberg dot com Status: Assigned Bug Type: Network related Operating System: * PHP Version: 5CVS-2004-03-05 Assigned To: wez New Comment:
5.0.0rc1 win32 same error as above custom application on base of manual example. should be return $this->position >= strlen($this->data); if I reverse the return value of stream_eof all works fine return $this->position < strlen($this->data); Perhaps just a small ! is missing. Previous Comments: ------------------------------------------------------------------------ [2004-03-09 11:32:53] adam at trachtenberg dot com Oops. Wrong file extension. Should be: http://www.trachtenberg.com/patches/bug27508.txt ------------------------------------------------------------------------ [2004-03-09 11:31:38] adam at trachtenberg dot com Here's an example where the class is just a wrapper around fopen(), fread(), fwrite(), etc. It's at http://www.trachtenberg.com/patches/ bug27508.php. In PHP 4, you get: line1 line2 line3 PHP 5 outputs no data. ------------------------------------------------------------------------ [2004-03-09 08:47:27] [EMAIL PROTECTED] Wez, the fix didn't quite fix it. Adam, can you please come up with a test case and send it to internals@ ? (The one in manual is a bit long, could it be made any shorter?) ------------------------------------------------------------------------ [2004-03-07 20:34:49] adam at trachtenberg dot com Sorry. Still broken. ------------------------------------------------------------------------ [2004-03-07 16:59:08] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Most likely fixed now ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27508 -- Edit this bug report at http://bugs.php.net/?id=27508&edit=1