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

Feature/Change Request #67429 CLI server is missing some new HTTP response codes
Submitted: 2014-06-12 22:57:17 Modified: 2014-06-13 00:58:12
From: aharvey Assigned: aharvey
Status: Closed Package: Built-in web server
PHP Version: 5.4.29 OS: Irrelevant

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/bug67429.php on line 13
002+ connect failed
001- HTTP/1.1 308 Permanent Redirect
002- Connection: close
003- X-Powered-By: %s
004- Content-type: text/html; charset=UTF-8
005-
006- HTTP/1.1 426 Upgrade Required
007- Connection: close
008- X-Powered-By: %s
009- 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/bug67429.php(6): php_cli_server_start('http_response_c...')
005+ #2 {main}
006+ thrown in /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc on line 41
001- HTTP/1.1 308 Permanent Redirect
002- Connection: close
003- X-Powered-By: %s
004- Content-type: text/html; charset=UTF-8
005-
006- HTTP/1.1 426 Upgrade Required
007- Connection: close
008- X-Powered-By: %s
009- Content-type: text/html; charset=UTF-8
1 (11%)
001+ PHP 7.0.9 Development Server started at Wed Jul 27 12:38:57 2016
1 (11%)
001+ HTTP/1.1 200 OK
001- HTTP/1.1 308 Permanent Redirect
006+ array(0) {
007+ }
008+ HTTP/1.1 200 OK
006- HTTP/1.1 426 Upgrade Required
012+
013+ array(0) {
014+ }
1 (11%)
001+ HTTP/1.1 200 OK
001- HTTP/1.1 308 Permanent Redirect
006+ <br />
007+ <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
008+ <br />
009+ <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 />
010+ HTTP/1.1 200 OK
006- HTTP/1.1 426 Upgrade Required
014+
015+ <br />
016+ <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
017+ <br />
018+ <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+ ** ERROR: process timed out **
001- HTTP/1.1 308 Permanent Redirect
002- Connection: close
003- X-Powered-By: %s
004- Content-type: text/html; charset=UTF-8
005-
006- HTTP/1.1 426 Upgrade Required
007- Connection: close
008- X-Powered-By: %s
009- Content-type: text/html; charset=UTF-8