php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70065 curl_getinfo() returns corrupted values
Submitted: 2015-07-13 18:14 UTC Modified: -
From: segfall at gmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 7.0.0beta1 OS: Windows 8.1 Pro x64
Private report: No CVE-ID:
 [2015-07-13 18:14 UTC] segfall at gmail dot com
Description:
------------
Default PHP package for Windows: 
VC14 x64 Thread Safe (2015-Jul-10 21:13:03)
PHP 7.0.0beta1 (cli) (built: Jul 10 2015 10:58:11)

Test script:
---------------
$curl = curl_init('http://whatismyip.akamai.com/');
curl_exec($curl);

Expected result:
----------------
[...] (Irrelevant parts omitted)
    [http_code] => 200
    [header_size] => 229
    [request_size] => 60
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [primary_port] => 80
    [local_port] => 37146
[...]

Actual result:
--------------
[...]
    [http_code] => 785979015368 
    [header_size] => 785979015397
    [request_size] => 785979015228
    [filetime] => 790273982463
    [ssl_verify_result] => 785979015168
    [redirect_count] => 785979015168
    [primary_port] => 785979015248
    [local_port] => 785979067059
[...]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-13 19:51 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cefd010739e19b16d60544f6107c2c83e1430fb8
Log: Fixed bug #70065 curl_getinfo() returns corrupted values
 [2015-07-13 19:51 UTC] ab@php.net
-Status: Open +Status: Closed
 [2015-07-21 14:20 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cefd010739e19b16d60544f6107c2c83e1430fb8
Log: Fixed bug #70065 curl_getinfo() returns corrupted values
 [2016-07-20 11:37 UTC] davey@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cefd010739e19b16d60544f6107c2c83e1430fb8
Log: Fixed bug #70065 curl_getinfo() returns corrupted values
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Feb 21 14:01:44 2017 UTC