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

Bug #70264 CLI server directory traversal
Submitted: 2015-08-14 00:05:13 Modified: 2015-08-14 11:34:53
From: jplopezy Assigned: cmb
Status: Closed Package: Built-in web server
PHP Version: 5.6.12 OS: Windows only

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

Count Diff
3 (38%)
001+ Warning: file_get_contents(http://localhost:8964/..\CREDITS): failed to open stream: Connection refused in %s/bug70264.php on line 4
001- Warning: file_get_contents(http://%s/..\CREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
002- in %sbug70264.php on line %d
003+ Warning: file_get_contents(http://localhost:8964/..%5CCREDITS): failed to open stream: Connection refused in %s/bug70264.php on line 5
004- Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
005- in %sbug70264.php on line %d
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/bug70264.php(3): php_cli_server_start(NULL, NULL)
005+ #2 {main}
001- Warning: file_get_contents(http://%s/..\CREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
002- in %sbug70264.php on line %d
003-
004- Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
005- in %sbug70264.php on line %d
006+ thrown in /usr/local/src/php-7.0.9/sapi/cli/tests/php_cli_server.inc on line 41
1 (13%)
001+ PHP 7.0.9 Development Server started at Wed Jul 27 12:38:57 2016
002+
1 (13%)
001+ <br />
002+ <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
003+ <br />
004+ <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 />
005+ <br />
001- Warning: file_get_contents(http://%s/..\CREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
002- in %sbug70264.php on line %d
003-
004- Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
005- in %sbug70264.php on line %d
006+ <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br />
007+ <br />
008+ <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 (13%)
001+ ** ERROR: process timed out **
001- Warning: file_get_contents(http://%s/..\CREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
002- in %sbug70264.php on line %d
003-
004- Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
005- in %sbug70264.php on line %d