Bug #66830 [NEW]: Empty header causes PHP built-in web server to hang
| From: | jon dot dufresne at gmail dot com | Date: | Wed, 05 Mar 2014 22:38:59 +0000 |
| Subject: | Bug #66830 [NEW]: Empty header causes PHP built-in web server to hang | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184547@lists.php.net to get a copy of this message | ||
From: jon dot dufresne at gmail dot com
Operating system: Fedora 20
PHP version: 5.5.9
Package: Built-in web server
Bug Type: Bug
Bug description:Empty header causes PHP built-in web server to hang
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 bug report at https://bugs.php.net/bug.php?id=66830&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66830&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66830&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66830&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66830&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66830&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66830&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66830&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66830&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66830&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66830&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66830&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66830&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66830&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66830&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66830&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66830&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66830&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66830&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66830&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66830&r=mysqlcfg