cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

PHP/CURL Compulation problem

From: Steve Kirtley <steve.kirtley_at_gmail.com>
Date: Wed, 1 Nov 2006 11:08:49 +0000

Strange - I was getting exactly the same errors with the latest download of
PHP 4.4.4 and Curl/LibCurl...

Yet with mine it compiled fine with PHP 4.2.2.

Message: 2
Date: Wed, 1 Nov 2006 05:49:17 +0100 (CET)
From: "Philippe BEAU" <philippe_at_choup.net>
Subject: PHP/CURL Compilation problem
To: curl-and-php_at_cool.haxx.se
Message-ID: < 53105.86.209.72.168.1162356557.squirrel_at_www.choup.net>
Content-Type: text/plain;charset=iso-8859-1

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