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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 23:01:33 2025 UTC