From: [EMAIL PROTECTED] Operating system: Linux RH 7 PHP version: 4CVS-2002-11-05 PHP Bug Type: cURL related Bug description: feof doesn't work with --with-curlwrappers
The following script works fine without curlwrappers, but the while loop never exits with it enabled: <?php print "Opening site..\n"; if ($fp = fopen('http://www.cnn.com/', 'r')) { print "Reading data..\n"; while (!feof($fp)) { $data .= fgets($fp, 128); } print "closing file..\n"; fclose($fp); print $data; } ?> ./configure --with-mysql=/usr/local/ --with-apxs --sysconfdir--mandir=/usr/local/man/ --enable-calendar --enable-ftp --with-openssl --without-pear --with-curl=/usr/lib --with-zlib --enable-tokenizer --with-imap-ssl --with-gd --with-curlwrappers --disable-mbstring curl 7.10.1 (i686-pc-linux-gnu) libcurl/7.10.1 OpenSSL/0.9.6d zlib/1.1.3 -- Edit bug report at http://bugs.php.net/?id=20263&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20263&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20263&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20263&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20263&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20263&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20263&r=support Expected behavior: http://bugs.php.net/fix.php?id=20263&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20263&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20263&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20263&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20263&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20263&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20263&r=isapi