Bug #61679 [NEW]: Error on non-standard HTTP methods
| From: | toby@php.net | Date: | Mon, 09 Apr 2012 13:47:56 +0000 |
| Subject: | Bug #61679 [NEW]: Error on non-standard HTTP methods | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-169353@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.4.0
Package: Built-in web server
Bug Type: Bug
Bug description:Error on non-standard HTTP methods
Description:
------------
The built in webserver bails out with an error on retrieval of a
non-standard HTTP request method (e.g. PATCH).
Test script:
---------------
Run the PHP built in web server on PORT 8042 and use the following script
to reproduce the error:
$httpFilePointer = fopen(
'http://localhost:8042',
'r',
false,
stream_context_create(
array(
'http' => array(
'method' => 'PATCH',
),
)
)
);
Expected result:
----------------
A valid HTTP response, depending on the script run by the server.
Actual result:
--------------
The server logs to shell:
[Mon Apr 9 15:45:35 2012] ::1:37726 Invalid request (Malformed HTTP
request)
The client complains about a malformed response:
Warning: fopen(http://localhost:8042): failed to open stream: HTTP request
failed! in â¦
--
Edit bug report at https://bugs.php.net/bug.php?id=61679&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61679&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61679&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61679&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61679&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61679&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61679&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61679&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61679&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61679&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61679&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61679&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61679&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61679&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61679&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61679&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61679&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61679&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61679&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61679&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61679&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61679&r=mysqlcfg