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

Bug #61977 Need CLI web-server support for files with .htm & svg extensions
Submitted: 2012-05-08 20:51:06 Modified: 2012-06-20 17:14:53
From: sixd Assigned: laruence
Status: Closed Package: Built-in web server
PHP Version: 5.4.3 OS: All

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

Count Diff
2 (25%)
001+ Warning: fsockopen(): unable to connect to localhost:8964 (Connection refused) in %s/bug61977.php on line 15
002+ Connect failed
001- foo.html => Content-Type: text/html; charset=UTF-8
002- foo.htm => Content-Type: text/html; charset=UTF-8
003- foo.svg => Content-Type: image/svg+xml
004- foo.css => Content-Type: text/css; charset=UTF-8
005- foo.js => Content-Type: application/javascript
006- foo.png => Content-Type: image/png
007- foo.webm => Content-Type: video/webm
008- foo.ogv => Content-Type: video/ogg
009- foo.ogg => Content-Type: audio/ogg
2 (25%)
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/bug61977.php(3): php_cli_server_start('<?php ?>', NULL)
005+ #2 {main}
006+ thrown in /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc on line 41
001- foo.html => Content-Type: text/html; charset=UTF-8
002- foo.htm => Content-Type: text/html; charset=UTF-8
003- foo.svg => Content-Type: image/svg+xml
004- foo.css => Content-Type: text/css; charset=UTF-8
005- foo.js => Content-Type: application/javascript
006- foo.png => Content-Type: image/png
007- foo.webm => Content-Type: video/webm
008- foo.ogv => Content-Type: video/ogg
009- foo.ogg => Content-Type: audio/ogg
1 (13%)
002+
003+ Warning: fsockopen(): unable to connect to localhost:8964 (Connection refused) in %s/bug61977.php on line 15
004+ Connect failed
002- foo.htm => Content-Type: text/html; charset=UTF-8
003- foo.svg => Content-Type: image/svg+xml
004- foo.css => Content-Type: text/css; charset=UTF-8
005- foo.js => Content-Type: application/javascript
006- foo.png => Content-Type: image/png
007- foo.webm => Content-Type: video/webm
008- foo.ogv => Content-Type: video/ogg
009- foo.ogg => Content-Type: audio/ogg
1 (13%)
001+ foo.html => Content-type: text/html; charset=UTF-8
002+ foo.htm => Content-type: text/html; charset=UTF-8
003+ foo.svg => Content-type: text/html; charset=UTF-8
004+ foo.css => Content-type: text/html; charset=UTF-8
005+ foo.js => Content-type: text/html; charset=UTF-8
006+ foo.png => Content-type: text/html; charset=UTF-8
007+ foo.webm => Content-type: text/html; charset=UTF-8
008+ foo.ogv => Content-type: text/html; charset=UTF-8
009+ foo.ogg => Content-type: text/html; charset=UTF-8
001- foo.html => Content-Type: text/html; charset=UTF-8
002- foo.htm => Content-Type: text/html; charset=UTF-8
003- foo.svg => Content-Type: image/svg+xml
004- foo.css => Content-Type: text/css; charset=UTF-8
005- foo.js => Content-Type: application/javascript
006- foo.png => Content-Type: image/png
007- foo.webm => Content-Type: video/webm
008- foo.ogv => Content-Type: video/ogg
009- foo.ogg => Content-Type: audio/ogg
1 (13%)
001+ PHP 7.0.9 Development Server started at Wed Jul 27 12:38:56 2016
1 (13%)
001+ ** ERROR: process timed out **
001- foo.html => Content-Type: text/html; charset=UTF-8
002- foo.htm => Content-Type: text/html; charset=UTF-8
003- foo.svg => Content-Type: image/svg+xml
004- foo.css => Content-Type: text/css; charset=UTF-8
005- foo.js => Content-Type: application/javascript
006- foo.png => Content-Type: image/png
007- foo.webm => Content-Type: video/webm
008- foo.ogv => Content-Type: video/ogg
009- foo.ogg => Content-Type: audio/ogg