Bug #62297 [NEW]: PECL webpage returns incorrect HTTP code for 404 errors
| From: | mgorny at gentoo dot org | Date: | Tue, 12 Jun 2012 08:19:22 +0000 |
| Subject: | Bug #62297 [NEW]: PECL webpage returns incorrect HTTP code for 404 errors | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13682@lists.php.net to get a copy of this message | ||
From: mgorny at gentoo dot org
Operating system: n/a
PHP version: Irrelevant
Package: Website problem
Bug Type: Bug
Bug description:PECL webpage returns incorrect HTTP code for 404 errors
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 bug report at https://bugs.php.net/bug.php?id=62297&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62297&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62297&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62297&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62297&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62297&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62297&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62297&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62297&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62297&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62297&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62297&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62297&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62297&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62297&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62297&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62297&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62297&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62297&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62297&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62297&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62297&r=mysqlcfg