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:
Nicos is right that it isn't officially supported, but that really
doesn't mean you should report bugs about it, on the contrary!
Previous Comments:
------------------------------------------------------------------------
[2002-11-05 10:20:53] [EMAIL PROTECTED]
Yes, I tested it with and without, once it was disable the script works
fine.
------------------------------------------------------------------------
[2002-11-05 10:19:39] [EMAIL PROTECTED]
curlwrappers wont work until PHP 4.4 or PHP 5
------------------------------------------------------------------------
[2002-11-05 10:18:09] [EMAIL PROTECTED]
Are you sure that it is curlwrappers the responsible? did you tried the
same code without it?
------------------------------------------------------------------------
[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