# ext/curl/interface.c and CURLOPT_FTP_CREATE_MISSING_DIRS

- Thread: https://externals.io/message/28936
- Original archive: https://news-web.php.net/php.internals/28936
- Started by noah on 2007-04-20T15:08:43+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28936 — noah — 2007-04-20T15:08:43+00:00

URL: https://externals.io/message/28936#28936

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

---

## #28937 — Antony Dovgal — 2007-04-20T15:18:37+00:00

URL: https://externals.io/message/28936#28937 · In reply to: #28936

> 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

---

## #28939 — Rasmus Lerdorf — 2007-04-20T16:30:59+00:00

URL: https://externals.io/message/28936#28939 · In reply to: #28936

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

---

## #28940 — Derick Rethans — 2007-04-20T16:39:53+00:00

URL: https://externals.io/message/28936#28940 · In reply to: #28939

> noah wrote:
> > […]
> 
> 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

---

## #28945 — Tijnema ! — 2007-04-21T10:48:03+00:00

URL: https://externals.io/message/28936#28945 · In reply to: #28936

> 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
