php.net |  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
Description:
------------
In ext/curl/interface.c:

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

According to libcurl documentation (http://curl.haxx.se/libcurl/c/curl_version_info.html this symbol) it exists just after version 7.11.1 and not 7.10.1:

CURL_VERSION_LARGEFILE 
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.


Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-10 23:58 UTC] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=296048
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] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-03-11 00:00 UTC] felipe@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC