Bug #62297 [Opn->Ver]: PECL webpage returns incorrect HTTP code for 404 errors
| From: | cmb@php.net | Date: | Sun, 02 Aug 2015 19:59:36 +0000 |
| Subject: | Bug #62297 [Opn->Ver]: PECL webpage returns incorrect HTTP code for 404 errors | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-21541@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62297&edit=1
ID: 62297
Updated by: cmb@php.net
Reported by: mgorny at gentoo dot org
Summary: PECL webpage returns incorrect HTTP code for 404
errors
-Status: Open
+Status: Verified
Type: Bug
Package: Website problem
Operating System: n/a
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Confirmed.
Previous Comments:
------------------------------------------------------------------------
[2012-06-12 08:19:22] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62297&edit=1