curl-and-php
PHP/CURL Compilation problem
Date: Wed, 1 Nov 2006 05:49:17 +0100 (CET)
Hello All,
I would like to compile cURL support with PHP 4.4.2. I take a recent
version of curl/libcurl (the latest) it compile well.
when i compil i have this message :
/src/php-4.4.2/ext/curl/curl.c: In function `zm_startup_curl':
/src/php-4.4.2/ext/curl/curl.c:207: `CURLOPT_FTPASCII' undeclared (first
use in this function)
/src/php-4.4.2/ext/curl/curl.c:207: (Each undeclared identifier is
reported only once
/src/php-4.4.2/ext/curl/curl.c:207: for each function it appears in.)
/src/php-4.4.2/ext/curl/curl.c:245: `CURLOPT_PASSWDFUNCTION' undeclared
(first use in this function)
All the CURL file on the harddrive have been deleted before installing new
libs. i try from RPM, rebuild RPM, of From Source. Same errors !
Also, i found a solution, but ...
for CURLOPT_FTPASCII :
in curl sources : lib/url.c
case CURLOPT_TRANSFERTEXT:
/*
* This option was previously named 'FTPASCII'. Renamed to work with
* more protocols than merely FTP.
*
* Transfer using ASCII (instead of BINARY).
*/
data->set.prefer_ascii = (bool)(0 != va_arg(param, long));
break;
-> is CURLOPT_FTPASCII is renamed by CURLOPT_TRANSFERTEXT ?
-> is CURLOPT_PASSWDFUNCTION is misdeclared in lib (not present in .h file
?) that PHP don't find it well ? If i comment in curl.c the 2 lines
concerned, it's work well ...
Philippe,
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-11-01