php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66830 Empty header causes PHP built-in web server to hang
Submitted: 2014-03-05 22:38 UTC Modified: 2014-07-06 02:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jon dot dufresne at gmail dot com Assigned:
Status: Closed Package: Built-in web server
PHP Version: 5.5.9 OS: Fedora 20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jon dot dufresne at gmail dot com
New email:
PHP Version: OS:

 

 [2014-03-05 22:38 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-06 02:25 UTC] yohgaki@php.net
-Status: Open +Status: Verified
 [2014-07-06 02:25 UTC] yohgaki@php.net
It hangs with 5.5 branch at least.
I guess built in server is trying to read inputs.
 [2014-07-07 20:49 UTC] aharvey@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-07-07 20:49 UTC] aharvey@php.net
-Status: Verified +Status: Closed
 [2014-07-08 08:18 UTC] dmitry@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-07-21 09:31 UTC] ab@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-07-21 10:02 UTC] ab@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-07-30 09:52 UTC] tyrael@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-10-07 23:14 UTC] stas@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of aharvey
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=604de67b7d0b8c6db76002011e3b55dd9c7aeec8
Log: Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC