ID: 20263 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: cURL related Operating System: Linux RH 7 PHP Version: 4CVS-2002-11-05 New Comment:
Are you sure that it is curlwrappers the responsible? did you tried the same code without it? Previous Comments: ------------------------------------------------------------------------ [2002-11-05 10:09:09] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=20263&edit=1