Test: /sapi/cli/tests/bug66830.phpt - Version 7.0.9        

Bug #66830 Empty header causes PHP built-in web server to hang
Submitted: 2014-03-05 22:38:58 Modified: 2014-07-06 02:25:45
From: jon.dufresne Assigned:
Status: Closed Package: Built-in web server
PHP Version: 5.5.9 OS: Fedora 20

There are 6 different diffs reported by users for this test.

Count Diff
3 (33%)
001+ Warning: fsockopen(): unable to connect to localhost:8964 (Connection refused) in %s/bug66830.php on line 11
002+ connect failed
001- HTTP/1.1 200 OK
002- Host: %s
003- Connection: close
004- X-Powered-By: %s
005- Content-type: text/html; charset=UTF-8
2 (22%)
001+ Fatal error: Uncaught RuntimeException: usleep is not suitable for use in multi threaded applications, use synchronized Threaded::wait in /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc:41
002+ Stack trace:
003+ #0 /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc(41): usleep(10000)
004+ #1 %s/bug66830.php(4): php_cli_server_start('header(' ');')
005+ #2 {main}
001- HTTP/1.1 200 OK
002- Host: %s
003- Connection: close
004- X-Powered-By: %s
005- Content-type: text/html; charset=UTF-8
006+ thrown in /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc on line 41
1 (11%)
006+
007+ array(0) {
008+ }
1 (11%)
006+
007+ <br />
008+ <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
009+ <br />
010+ <b>Fatal error</b>: Unknown: Failed opening required 'responder/get.php' (include_path='.:/opt/php-7.0/lib/php') in <b>Unknown</b> on line <b>0</b><br />
1 (11%)
001+ PHP 7.0.9 Development Server started at Wed Jul 27 12:38:57 2016
1 (11%)
001+ ** ERROR: process timed out **
001- HTTP/1.1 200 OK
002- Host: %s
003- Connection: close
004- X-Powered-By: %s
005- Content-type: text/html; charset=UTF-8