Req #72049 [NEW]: Implement CURLINFO_APPCONNECT_TIME into curl_getinfo
| From: | marcvdmeulen at gmail dot com | Date: | Mon, 18 Apr 2016 14:17:34 +0000 |
| Subject: | Req #72049 [NEW]: Implement CURLINFO_APPCONNECT_TIME into curl_getinfo | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200628@lists.php.net to get a copy of this message | ||
From: marcvdmeulen at gmail dot com
Operating system:
PHP version: Irrelevant
Package: cURL related
Bug Type: Feature/Change Request
Bug description:Implement CURLINFO_APPCONNECT_TIME into curl_getinfo
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=72049&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72049&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72049&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72049&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72049&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72049&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72049&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72049&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72049&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72049&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72049&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72049&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72049&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72049&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72049&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72049&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72049&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72049&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72049&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72049&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72049&r=mysqlcfg