Req #72049 [Opn->Csd]: Implement CURLINFO_APPCONNECT_TIME into curl_getinfo

From: Date: Sun, 24 Apr 2016 00:35:17 +0000
Subject: Req #72049 [Opn->Csd]: Implement CURLINFO_APPCONNECT_TIME into curl_getinfo
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13418@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72049&edit=1 ID: 72049 Updated by: pierrick@php.net Reported by: marcvdmeulen at gmail dot 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 at gmail dot 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72049&edit=1

« previous php.doc.bugs (#13418) next »