ID:               48350
 Updated by:       [email protected]
 Reported By:      margus at zone dot ee
-Status:           Open
+Status:           Closed
 Bug Type:         cURL related
 Operating System: Linux
 PHP Version:      5.3.0RC2
 New Comment:

This bug has been fixed in CVS.

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.




Previous Comments:
------------------------------------------------------------------------

[2009-05-21 08:28:55] margus at zone dot ee

Description:
------------
Compilation fails when building curl extension against curl 7.12.1

Suggested patch:

--- ext/curl/interface.c 2009-05-21 11:27:20.000000000 +0300
+++ ext/curl/interface.c.patched 2009-05-21 11:27:17.000000000 +0300
@@ -1529,10 +1529,12 @@
                case CURLOPT_PROTOCOLS:
 #endif
                case CURLOPT_IPRESOLVE:
+#if LIBCURL_VERSION_NUM >= 0x070f01
                case CURLOPT_FTP_FILEMETHOD:
                        convert_to_long_ex(zvalue);
                        error = curl_easy_setopt(ch->cp, option,
Z_LVAL_PP(zvalue));
                        break;
+#endif
                case CURLOPT_FOLLOWLOCATION:
                        convert_to_long_ex(zvalue);
                        if ((PG(open_basedir) && *PG(open_basedir)) ||
PG(safe_mode)) {

Reproduce code:
---------------
./configure --with-curl && make

Expected result:
----------------
Build complete.
Don't forget to run 'make test'.

Actual result:
--------------
/XXX/php-5.3.0/ext/curl/interface.c: In function `_php_curl_setopt':
/XXX/php-5.3.0/ext/curl/interface.c:1532: error:
`CURLOPT_FTP_FILEMETHOD' undeclared (first use in this function)
/XXX/php-5.3.0/ext/curl/interface.c:1532: error: (Each undeclared
identifier is reported only once
/XXX/php-5.3.0/ext/curl/interface.c:1532: error: for each function it
appears in.)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48350&edit=1

Reply via email to