peachpie icon indicating copy to clipboard operation
peachpie copied to clipboard

a lot of CURLINFO_* are not supported

Open liesauer opened this issue 7 years ago • 3 comments

  • [ ] CURLINFO_NAMELOOKUP_TIME
  • [ ] CURLINFO_CONNECT_TIME
  • [ ] CURLINFO_PRETRANSFER_TIME
  • [ ] CURLINFO_STARTTRANSFER_TIME
  • [ ] CURLINFO_REDIRECT_TIME
  • [ ] CURLINFO_SIZE_UPLOAD
  • [ ] CURLINFO_SIZE_DOWNLOAD
  • [ ] CURLINFO_SPEED_DOWNLOAD
  • [ ] CURLINFO_SPEED_UPLOAD
  • [x] CURLINFO_HEADER_SIZE
  • [x] CURLINFO_HEADER_OUT
  • [ ] CURLINFO_REQUEST_SIZE
  • [ ] CURLINFO_SSL_VERIFYRESULT
  • [ ] CURLINFO_CONTENT_LENGTH_UPLOAD

CURLINFO_HEADER_SIZE is more important for me because one of my php classlib in dependence on this, hope to fix soon. thanks!

here is my test code:

curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); // 1048577
curl_getinfo($ch, CURLINFO_HTTP_CODE); // 2097154
curl_getinfo($ch, CURLINFO_FILETIME); // 2097166
curl_getinfo($ch, CURLINFO_TOTAL_TIME); // 3145731
curl_getinfo($ch, CURLINFO_NAMELOOKUP_TIME); // 3145732
curl_getinfo($ch, CURLINFO_CONNECT_TIME); // 3145733
curl_getinfo($ch, CURLINFO_PRETRANSFER_TIME); // 3145734
curl_getinfo($ch, CURLINFO_STARTTRANSFER_TIME); // 3145745
curl_getinfo($ch, CURLINFO_REDIRECT_TIME); // 3145747
curl_getinfo($ch, CURLINFO_SIZE_UPLOAD); // 3145735
curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD); // 3145736
curl_getinfo($ch, CURLINFO_SPEED_DOWNLOAD); // 3145737
curl_getinfo($ch, CURLINFO_SPEED_UPLOAD); // 3145738
curl_getinfo($ch, CURLINFO_HEADER_SIZE); // 2097163
curl_getinfo($ch, CURLINFO_HEADER_OUT); // 2
curl_getinfo($ch, CURLINFO_REQUEST_SIZE); // 2097164
curl_getinfo($ch, CURLINFO_SSL_VERIFYRESULT); // 2097165
curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD); // 3145743
curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_UPLOAD); // 3145744
curl_getinfo($ch, CURLINFO_CONTENT_TYPE); // 1048594

and i got some warnings

PHP (Warning): Value '3145732' of argument 'opt' is not supported
PHP (Warning): Value '3145733' of argument 'opt' is not supported
PHP (Warning): Value '3145734' of argument 'opt' is not supported
PHP (Warning): Value '3145745' of argument 'opt' is not supported
PHP (Warning): Value '3145747' of argument 'opt' is not supported
PHP (Warning): Value '3145735' of argument 'opt' is not supported
PHP (Warning): Value '3145736' of argument 'opt' is not supported
PHP (Warning): Value '3145737' of argument 'opt' is not supported
PHP (Warning): Value '3145738' of argument 'opt' is not supported
PHP (Warning): Value '2097163' of argument 'opt' is not supported
PHP (Warning): Value '2' of argument 'opt' is not supported
PHP (Warning): Value '2097164' of argument 'opt' is not supported
PHP (Warning): Value '2097165' of argument 'opt' is not supported
PHP (Warning): Value '3145744' of argument 'opt' is not supported

liesauer avatar Jul 29 '18 02:07 liesauer

some CURLOPT_* too.

liesauer avatar Nov 27 '18 13:11 liesauer

Yeah it would be great to get some more of the Curl Opts:

  • [x] CURLOPT_CONNECTTIMEOUT
  • [ ] CURLOPT_CAINFO
  • [ ] CURLOPT_CAPATH
  • [x] CURLOPT_STDERR
  • [x] CURLOPT_VERBOSE

jondmcelroy avatar Nov 30 '18 19:11 jondmcelroy

Also:

  • [ ] CURLOPT_AUTOREFERER // we should handle redirect by ourselves (instead of default impl.)
  • [x] CURLOPT_COOKIEJAR https://github.com/peachpiecompiler/peachpie/issues/615

DRSDavidSoft avatar Jan 19 '20 02:01 DRSDavidSoft