php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54995 Missing CURLINFO_RESPONSE_CODE support
Submitted: 2011-06-05 17:00 UTC Modified: 2011-11-23 05:51 UTC
From: steven dot hartland at multiplay dot co dot uk Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.6 OS: N/A
Private report: No CVE-ID: None
 [2011-06-05 17:00 UTC] steven dot hartland at multiplay dot co dot uk
Description:
------------
As of libcurl 7.10.7 CURLINFO_HTTP_CODE is now known as CURLINFO_RESPONSE_CODE 
this doesn't seem to have been updated in ext/curl the result being a failure if 
CURLINFO_RESPONSE_CODE is used with curl_getinfo

Test script:
---------------
Try to use: curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

Expected result:
----------------
curl_getinfo($ch, CURLINFO_RESPONSE_CODE) should return the same as 
curl_getinfo($ch, CURLINFO_HTTP_CODE) currently does.

Actual result:
--------------
Always fails as CURLINFO_RESPONSE_CODE isn't defined

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-22 08:36 UTC] pierrick@php.net
-Assigned To: +Assigned To: pierrick
 [2011-11-23 05:45 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=319706
Log: Fixed bug #54995
 [2011-11-23 05:51 UTC] pierrick@php.net
-Status: Assigned +Status: Closed
 [2011-11-23 05:51 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.

Added in trunk
 [2012-04-18 09:47 UTC] laruence@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bafdf84528100d980599685af43508f029e96dd7
Log: Fixed bug #54995
 [2012-07-24 23:38 UTC] rasmus@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bafdf84528100d980599685af43508f029e96dd7
Log: Fixed bug #54995
 [2013-11-17 09:35 UTC] laruence@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bafdf84528100d980599685af43508f029e96dd7
Log: Fixed bug #54995
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC