Bug #76438 [NEW]: wrong curl_getinfo time values

From: Date: Sat, 09 Jun 2018 20:31:47 +0000
Subject: Bug #76438 [NEW]: wrong curl_getinfo time values
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215567@lists.php.net to get a copy of this message
From: example1 at example2 dot com Operating system: Windows 7.1 PHP version: Irrelevant Package: cURL related Bug Type: Bug Bug description:wrong curl_getinfo time values Description: ------------ curl_getinfo sometimes returns very big time values. 4295.139296, 4295.310296 and 4295.295296 are very frequent (about 57%). All I have spotted were of format 4295.***296 . Apache/2.4.27 (Win64) PHP/7.1.9. Test script: --------------- <?php $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://example.com'); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_TIMEOUT, 15); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_exec($curl); $info = curl_getinfo($curl); echo 'total_time = ' . $info['total_time'] . '<br>'; echo 'namelookup_time = ' . $info['namelookup_time'] . '<br>'; echo 'connect_time = ' . $info['connect_time'] . '<br>'; echo 'pretransfer_time = ' . $info['pretransfer_time'] . '<br>'; echo 'starttransfer_time = ' . $info['starttransfer_time'] . '<br>'; echo 'redirect_time = ' . $info['redirect_time'] . '<br>'; curl_close($curl); ?> Expected result: ---------------- typical normal result: total_time = 0.327 namelookup_time = 1.0E-6 connect_time = 0.171 pretransfer_time = 0.171 starttransfer_time = 0.327 redirect_time = 0 Actual result: -------------- total_time = 4295.326296 namelookup_time = 0.015 connect_time = 4295.154296 pretransfer_time = 4295.154296 starttransfer_time = 4295.326296 redirect_time = 0 -- Edit bug report at https://bugs.php.net/bug.php?id=76438&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76438&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76438&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76438&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76438&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76438&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76438&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76438&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76438&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76438&r=support Expected behavior: https://bugs.php.net/fix.php?id=76438&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76438&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76438&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76438&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76438&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76438&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76438&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76438&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76438&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76438&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76438&r=mysqlcfg

« previous php.bugs (#215567) next »