From: margus at zone dot ee Operating system: Linux PHP version: 5.3.0RC2 PHP Bug Type: cURL related Bug description: compilation fails with `CURLOPT_FTP_FILEMETHOD` undeclared
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 bug report at http://bugs.php.net/?id=48350&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48350&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48350&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48350&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48350&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48350&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48350&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48350&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48350&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48350&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48350&r=support Expected behavior: http://bugs.php.net/fix.php?id=48350&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48350&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48350&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48350&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48350&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48350&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48350&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48350&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48350&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48350&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48350&r=mysqlcfg