php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62912 CURLINFO_PRIMARY_IP is not exposed
Submitted: 2012-08-23 20:20 UTC Modified: 2012-08-24 14:27 UTC
From: mommens at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.4.6 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mommens at gmail dot com
New email:
PHP Version: OS:

 

 [2012-08-23 20:20 UTC] mommens at gmail dot com
Description:
------------
The primary IP of crawled resources is available through curl_getinfo but the constant CURLINFO_PRIMARY_IP is not defined.

Test script:
---------------
$ch = curl_init('http://www.php.net');
curl_exec($ch);
var_dump(curl_getinfo($ch, 1048608));

Expected result:
----------------
Define CURLINFO_PRIMARY_IP = 1048608 and add this to the curl extension documentation.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-23 20:52 UTC] pierrick@php.net
-Assigned To: +Assigned To: pierrick
 [2012-08-24 14:24 UTC] pierrick@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4c83ecc75452a23799c39f9bbb95b617fa46bf84
Log: Fixed bug #62912 (CURLINFO_PRIMARY_IP is not exposed)
 [2012-08-24 14:26 UTC] pierrick@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4c83ecc75452a23799c39f9bbb95b617fa46bf84
Log: Fixed bug #62912 (CURLINFO_PRIMARY_IP is not exposed)
 [2012-08-24 14:27 UTC] pierrick@php.net
-Status: Assigned +Status: Closed
 [2012-08-24 14:27 UTC] pierrick@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

The bug was fixed in 5.4 and don't need to be fix in other versions.
 [2014-10-07 23:22 UTC] stas@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4c83ecc75452a23799c39f9bbb95b617fa46bf84
Log: Fixed bug #62912 (CURLINFO_PRIMARY_IP is not exposed)
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4c83ecc75452a23799c39f9bbb95b617fa46bf84
Log: Fixed bug #62912 (CURLINFO_PRIMARY_IP is not exposed)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC