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

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 6 different diffs reported by users for this test.

Count Diff
3 (33%)
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
2 (22%)
001+ Warning: file_get_contents(http://localhost:8964/..\CREDITS): failed to open stream: No route to host 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: No route to host 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
1 (11%)
001+ Warning: file_get_contents(http://localhost:8964/..\CREDITS): failed to open stream: HTTP request failed! 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: HTTP request failed! 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
1 (11%)
001+ PHP 5.6.36 Development Server started at Thu May 10 15:13:01 2018
002+
1 (11%)
001+ <br />
002+ <b>Warning</b>: Unknown: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>Unknown</b> on line <b>0</b><br />
003+
004+ Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in %s/bug70264.php on line 4
005+
006+ Warning: file_get_contents(http://localhost:8964/..\CREDITS): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in %s/bug70264.php on line 4
007+
008+ Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in %s/bug70264.php on line 5
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
004- Warning: file_get_contents(http://%s/..%5CCREDITS): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
010+ Warning: file_get_contents(http://localhost:8964/..%5CCREDITS): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in %s/bug70264.php on line 5
005- in %sbug70264.php on line %d
1 (11%)
001+ /etc/host.conf: line 2: bad command `127.0.0.1    www.my-web-site.com'
002+