doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

function curl_file_create is not in php manual

Open netmou opened this issue 3 years ago • 6 comments

maybe function curl_file_create is not in php manual, i can not find it image

netmou avatar Sep 19 '22 09:09 netmou

$a = curl_file_create('run.php');
var_export($a);

in browser id seems like: image

netmou avatar Sep 19 '22 09:09 netmou

relative res: http://www.lvesu.com/blog/php/function.curl-file-create.php

netmou avatar Sep 19 '22 09:09 netmou

It is mentioned in page :https://www.php.net/manual/zh/class.curlfile.php

image

netmou avatar Sep 19 '22 10:09 netmou

curl_file_create() was documented as alias of CurlFile::__construct() which is not really true, so the page has been removed recently; the old URL https://www.php.net/manual/en/function.curl-file-create now redirects to CurlFile::__construct(), but that may not be sufficient. @kocsismate, what do you think about this? Note that e.g. date_create_immutable() also is documented as alias of DateTimeImmutable::__construct() although that is not really true.

cmb69 avatar Sep 19 '22 10:09 cmb69

what do you think about this?

IMO it is sufficient if the curl_file_create() function name is displayed on the CurlFile::__construct() page, just like now. However, the redirection is broken (at least currently visiting the first google search link for "php curl_file_create()" results in an error 404), this is to be fixed by my linked PR.

I'm not sure why the internal search tool didn't display curl_file_create() (it does for me).

kocsismate avatar Sep 19 '22 19:09 kocsismate

I'm not sure why the internal search tool didn't display curl_file_create() (it does for me).

I think the search index is still in the browser's local storage for you. Fixing the issue generally would require to adapt PhD (not exactly sure where, but AFAIK there is an sqlite database where the respective info is accumulated).

cmb69 avatar Sep 26 '22 12:09 cmb69