#20263 [WFx->Opn]: feof doesn't work with --with-curlwrappers
| From: | kjartan at zind dot net | Date: | Tue, 05 Nov 2002 16:20:53 +0000 |
| Subject: | #20263 [WFx->Opn]: feof doesn't work with --with-curlwrappers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24129@lists.php.net to get a copy of this message | ||
ID: 20263
User updated by: kjartan@zind.net
Reported By: kjartan@zind.net
-Status: Won't fix
+Status: Open
Bug Type: cURL related
Operating System: Linux RH 7
PHP Version: 4CVS-2002-11-05
New Comment:
Yes, I tested it with and without, once it was disable the script works
fine.
Previous Comments:
------------------------------------------------------------------------
[2002-11-05 10:19:39] nicos@php.net
curlwrappers wont work until PHP 4.4 or PHP 5
------------------------------------------------------------------------
[2002-11-05 10:18:09] nicos@php.net
Are you sure that it is curlwrappers the responsible? did you tried the
same code without it?
------------------------------------------------------------------------
[2002-11-05 10:09:09] kjartan@zind.net
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