php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36947 HTTP stream wrapper does not treat all 2xx status codes as successful
Submitted: 2006-04-02 13:20 UTC Modified: 2015-01-18 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Jared dot Williams1 at ntlworld dot com Assigned:
Status: No Feedback Package: Streams related
PHP Version: 5.1.3RC2 OS: Win2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Jared dot Williams1 at ntlworld dot com
New email:
PHP Version: OS:

 

 [2006-04-02 13:20 UTC] Jared dot Williams1 at ntlworld dot com
Description:
------------
PHP HTTP stream wrapper does not treat all http 2xx status codes as successful, making it impossible to use with WebDAV.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-27 11:59 UTC] bjori@php.net
Fixed in PHP5.3, but I don't think it has been documented properly yet.
See: http://php.markmail.org/message/5rockhlt6hj7tzrb
 [2011-02-21 21:27 UTC] jani@php.net
-Package: Feature/Change Request +Package: Streams related
 [2011-02-21 21:27 UTC] jani@php.net
-Summary: PHP HTTP stream wrapper does not treat all 2xx status codes as successful +Summary: HTTP stream wrapper does not treat all 2xx status codes as successful
 [2012-02-01 05:46 UTC] josh at joshbutts dot com
This does not appear to be fixed in 5.3.6 compiled from source on Mac OS 10.7
 [2012-06-28 00:51 UTC] pollita@php.net
Could you elaborate on "not fixed" (preferably with a repro case)?  The code 
added by Mike in 2008 seems pretty liberal:


/* all status codes in the 2xx range are defined by the specification as 
successful;
 * all status codes in the 3xx range are for redirection, and so also should 
never
 * fail */
if (response_code >= 200 && response_code < 400) {
    reqok = 1;
 [2014-04-11 22:37 UTC] neufeind@php.net
So? Fixed (and close this) or not?
 [2015-01-09 00:16 UTC] ajf@php.net
-Status: Open +Status: Feedback
 [2015-01-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC