Bug #66830 [Opn->Ver]: Empty header causes PHP built-in web server to hang
| From: | yohgaki@php.net | Date: | Sun, 06 Jul 2014 02:25:45 +0000 |
| Subject: | Bug #66830 [Opn->Ver]: Empty header causes PHP built-in web server to hang | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186486@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66830&edit=1
ID: 66830
Updated by: yohgaki@php.net
Reported by: jon dot dufresne at gmail dot com
Summary: Empty header causes PHP built-in web server to hang
-Status: Open
+Status: Verified
Type: Bug
Package: Built-in web server
Operating System: Fedora 20
PHP Version: 5.5.9
Block user comment: N
Private report: N
New Comment:
It hangs with 5.5 branch at least.
I guess built in server is trying to read inputs.
Previous Comments:
------------------------------------------------------------------------
[2014-03-05 22:38:58] jon dot dufresne at gmail dot com
Description:
------------
Serving the test script below through the PHP built-in web server causes the server to hang. A
response is never generated. This script works through mod_php. Once the server hangs, Ctrl-C is
insufficient to quit. I am only able to quit using the kill command.
Test script:
---------------
<?php
header(' ', false, 200);
Expected result:
----------------
The web server should serve a response with a 200 status code.
Actual result:
--------------
Web server hangs. Requires killing with the kill command.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66830&edit=1