#20263 [Opn]: feof doesn't work with --with-curlwrappers

From: Date: Tue, 05 Nov 2002 16:29:33 +0000
Subject: #20263 [Opn]: feof doesn't work with --with-curlwrappers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24131@lists.php.net to get a copy of this message
ID: 20263 Updated by: nicos@php.net Reported By: kjartan@zind.net Status: Open Bug Type: cURL related Operating System: Linux RH 7 PHP Version: 4CVS-2002-11-05 New Comment: Wez told me it will be fixed for PHP4.4 and PHP5. They're already working on it so what? Lets keep it open anyway. Previous Comments: ------------------------------------------------------------------------ [2002-11-05 10:25:26] sander@php.net Nicos is right that it isn't officially supported, but that really doesn't mean you should report bugs about it, on the contrary! ------------------------------------------------------------------------ [2002-11-05 10:20:53] kjartan@zind.net Yes, I tested it with and without, once it was disable the script works fine. ------------------------------------------------------------------------ [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

« previous php.bugs (#24131) next »