FAQ
Edit report at https://bugs.php.net/bug.php?id=72049&edit=1

  ID: 72049
  Updated by: pierrick@php.net
  Reported by: marcvdmeulen@gmail.com
  Summary: Implement CURLINFO_APPCONNECT_TIME into curl_getinfo
-Status: Open
+Status: Closed
  Type: Feature/Change Request
-Package: cURL related
+Package: Documentation problem
  PHP Version: Irrelevant
-Assigned To:
+Assigned To: pierrick
  Block user comment: N
  Private report: N

  New Comment:

Not all variables need to be in the curl_getinfo response without any options.
But that's true that this option was not specified in the documentation.

The documentation is committed and should be online soon to reflect this new option.

Thanks


Previous Comments:
------------------------------------------------------------------------
[2016-04-18 14:17:32] marcvdmeulen@gmail.com

Description:
------------
Curl allows to give some extra information about the ssl/tls connection time with CURLINFO_APPCONNECT_TIME. This info is not returned yet when curl_getinfo is called without any options.

Here you can find the registered global
https://github.com/php/php-src/blob/e015faaf8f022f6338c0254ef2fd617f29c94c84/ext/curl/interface.c#L1069

and i am guessing it should be implemented in this block
https://github.com/php/php-src/blob/e015faaf8f022f6338c0254ef2fd617f29c94c84/ext/curl/interface.c#L3020

Test script:
---------------
<?php

$ch = curl_init('http://www.yahoo.com/');


curl_exec($ch);

if(!curl_errno($ch)){
     $info = curl_getinfo($ch);
}

curl_close($ch);

Expected result:
----------------
An array with the "appconnect_time" key and its value

Actual result:
--------------
The only way now is to get the value with
<?php
curl_getinfo($ch,CURLINFO_APPCONNECT_TIME);
?>

which is not even documented.


------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-doc-bugs @
categoriesphp
postedApr 24, '16 at 12:35a
activeApr 24, '16 at 12:35a
posts1
users1
websitephp.net

1 user in discussion

Pierrick: 1 post

People

Translate

site design / logo © 2019 Grokbase