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
Status: Closed Package: cURL related
PHP Version: 5.4.6 OS: Linux
Private report: No CVE-ID:
 [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

Add a Patch

Pull Requests

Add a Pull Request

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.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 16:02:22 2014 UTC