Edit report at https://bugs.php.net/bug.php?id=62297&edit=1

 ID:                 62297
 Updated by:         p...@php.net
 Reported by:        mgorny at gentoo dot org
 Summary:            PECL webpage returns incorrect HTTP code for 404
                     errors
-Status:             Verified
+Status:             Closed
 Type:               Bug
 Package:            Website problem
 Operating System:   n/a
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of peterko...@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


Previous Comments:
------------------------------------------------------------------------
[2015-08-02 19:59:35] c...@php.net

Confirmed.

------------------------------------------------------------------------
[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

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to