php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62297 PECL webpage returns incorrect HTTP code for 404 errors
Submitted: 2012-06-12 08:19 UTC Modified: 2015-08-02 19:59 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mgorny at gentoo dot org Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: n/a
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: mgorny at gentoo dot org
New email:
PHP Version: OS:

 

 [2012-06-12 08:19 UTC] mgorny at gentoo dot org
Description:
------------
When fetching a non-existent page from pecl.php.net, the page contents say 'Error 404' though the HTTP response says '200 OK'. This could be triggered using the following URL:

http://pecl.php.net/package/foobarbaz

Similar error happens in PEAR and possibly more php.net pages.

Test script:
---------------
#!/bin/sh
# HEAD comes from libwww-perl

HEAD http://pecl.php.net/package/foobarbaz

Expected result:
----------------
404 Not Found

Actual result:
--------------
200 OK
Connection: close
Date: Tue, 12 Jun 2012 09:23:32 GMT
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=UTF-8
Client-Date: Tue, 12 Jun 2012 08:19:47 GMT
Client-Peer: 78.129.214.25:80
Client-Response-Num: 1
X-Powered-By: PHP/5.3.6


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-02 19:59 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2015-08-02 19:59 UTC] cmb@php.net
Confirmed.
 [2018-10-27 22:52 UTC] petk@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=web/pecl.git;a=commit;h=9eb4e944fcbbf1f7efe5ec4c98dc8875f4ce1134
Log: Fix #62297: PECL webpage returns incorrect HTTP code for 404 errors
 [2018-10-27 22:52 UTC] petk@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC