|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20263 CURL: feof doesn't work with --with-curlwrappers
Submitted: 2002-11-05 10:09 UTC Modified: 2014-04-25 09:43 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: kjartan at zind dot net Assigned:
Status: Wont fix Package: cURL related
PHP Version: 5CVS OS: Linux RH 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
47 - 23 = ?
Subscribe to this entry?

 [2002-11-05 10:09 UTC] kjartan at zind dot net
The following script works fine without curlwrappers, but the while loop never exits with it enabled:

print "Opening site..\n";
if ($fp = fopen('', 'r')) {
  print "Reading data..\n";
  while (!feof($fp)) {
    $data .= fgets($fp, 128);
  print "closing file..\n";
  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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-05 10:51 UTC] kjartan at zind dot net
The option is present in 4.3.0pre2 with no mention of the curlwrappers being experimental. If it is known this will not work for 4.3 wouldn't it make sense to remove the configure option from ./configure --help until it works?
 [2002-11-06 03:56 UTC]
That was the plan.
Suspending this for now.
Thanks for being eager to try this out; we're really
waiting for features in the curl library (otherwise
it would be in PHP 4.3).
 [2003-01-15 05:56 UTC] daniel at haxx dot se
Don't wait. Act!

Since I am the single person who develop libcurl on a regular basis, I can assure you that I don't know what features you're missing and that I am not likely to add them without being pushed in the right direction, most preferably with some hands-on help.
 [2003-11-29 01:50 UTC]
Wez, maybe you should tell Daniel what you need for this to work..? :)

 [2004-04-22 02:05 UTC]
Sorry Daniel, but I don't even use curl these days.
 [2004-09-16 14:50 UTC]
Please stop assigning this bug to me
 [2010-12-03 18:13 UTC]
-Package: Feature/Change Request +Package: cURL related
 [2014-04-25 09:43 UTC]
-Status: Open +Status: Wont fix -Type: Feature/Change Request +Type: Bug
 [2014-04-25 09:43 UTC]
curlwrappers have been removed in PHP-5.5
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 14:01:27 2023 UTC