|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51257 CURL_VERSION_LARGEFILE incorrectly used after libcurl version 7.10.1
Submitted: 2010-03-10 12:37 UTC Modified: 2010-03-11 00:00 UTC
From: aron dot ujvari at microsec dot hu Assigned: felipe (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
 [2010-03-10 12:37 UTC] aron dot ujvari at microsec dot hu
In ext/curl/interface.c:

#if LIBCURL_VERSION_NUM > 0x070a09 /* 7.10.1 */
                       {"Largefile", CURL_VERSION_LARGEFILE},

According to libcurl documentation ( this symbol) it exists just after version 7.11.1 and not 7.10.1:

libcurl was built with support for large files. (Added in 7.11.1)

If you have libcurl version between 7.10.1 and 7.11.1 (in SLES9 for example) your build will fail since not CURL_VERSION_LARGEFILE symbol exists in libcurl but tried to used by PHP curl extension.

Patch file resolves this problem attached.


Patch (last revision 2010-03-10 11:40 UTC by aron dot ujvari at microsec dot hu)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-10 23:58 UTC]
Automatic comment from SVN on behalf of felipe
Log: - Fixed bug #51257 (CURL_VERSION_LARGEFILE incorrectly used after libcurl version 7.10.1)
  patch by: aron dot ujvari at microsec dot hu
 [2010-03-11 00:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-03-11 00:00 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Thanks for the patch.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 00:03:36 2023 UTC