ext/curl/interface.c and CURLOPT_FTP_CREATE_MISSING_DIRS

php.internals

noah

19 years ago
Could someone please add support for CURLOPT_FTP_CREATE_MISSING_DIRS in PHP's curl extension? I'd report it as a bug if bugs.php.net wasn't down. The file that needs to be modified is ext/curl/interface.c. 1. Add CURLOPT_FTP_CREATE_MISSING_DIRS as a PHP constant. 2. Add a 'case CURLOPT_FTP_CREATE_MISSING_DIRS:' to the curl...setopt() function right above the cases where the argument is of the type long. -- noah

Antony Dovgal

19 years ago
On 04/20/2007 07:08 PM, noah wrote:
> Could someone please add support for CURLOPT_FTP_CREATE_MISSING_DIRS > in PHP's curl extension? > I'd report it as a bug if bugs.php.net wasn't down. > > > The file that needs to be modified is ext/curl/interface.c. > > 1. Add CURLOPT_FTP_CREATE_MISSING_DIRS as a PHP constant.
In which cURL version did it appear first?
> 2. Add a 'case CURLOPT_FTP_CREATE_MISSING_DIRS:' to the > curl...setopt() function right above the cases where the argument is > of the type long.
Could you please send unified diff? Thanks.
-- Wbr, Antony Dovgal

Rasmus Lerdorf

19 years ago
noah wrote:
> Could someone please add support for CURLOPT_FTP_CREATE_MISSING_DIRS > in PHP's curl extension? > I'd report it as a bug if bugs.php.net wasn't down.
It isn't and the current uptime and traffic logs show continuous requests for the past 9 days. -Rasmus

Derick Rethans

19 years ago
On Fri, 20 Apr 2007, Rasmus Lerdorf wrote:
> noah wrote: > > Could someone please add support for CURLOPT_FTP_CREATE_MISSING_DIRS > > in PHP's curl extension? > > I'd report it as a bug if bugs.php.net wasn't down. > > It isn't and the current uptime and traffic logs show continuous > requests for the past 9 days.
I couldn't get any request through today either. regards, Derick

Tijnema !

19 years ago
On 4/20/07, noah <noah123@gmail.com> wrote:
> Could someone please add support for CURLOPT_FTP_CREATE_MISSING_DIRS > in PHP's curl extension? > I'd report it as a bug if bugs.php.net wasn't down. > > > The file that needs to be modified is ext/curl/interface.c. > > 1. Add CURLOPT_FTP_CREATE_MISSING_DIRS as a PHP constant. > 2. Add a 'case CURLOPT_FTP_CREATE_MISSING_DIRS:' to the > curl...setopt() function right above the cases where the argument is > of the type long. > > -- noah
I reported a patch a few weeks ago, also about CURL functions, because it seems that there are missing a lot CURLOPT_ constants. The libcurl library has a lot more constants. I would be happy to create a patch that adds all currently supported CURLOPT_ constants by the library, but i don't want to waste my time on creating things that never get implemented :) Tijnema