Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
standard /
tests /
http /
Delete
Unzip
Name
Size
Permission
Date
Action
CONFLICTS
7
B
-rw-rw-r--
2022-10-31 11:36
bug38802.phpt
4.33
KB
-rw-rw-r--
2022-10-31 11:36
bug43510.phpt
661
B
-rw-rw-r--
2022-10-31 11:36
bug47021.phpt
2.2
KB
-rw-rw-r--
2022-10-31 11:36
bug48929.phpt
1.37
KB
-rw-rw-r--
2022-10-31 11:36
bug53198.phpt
1004
B
-rw-rw-r--
2022-10-31 11:36
bug60570.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
bug61548.phpt
2.22
KB
-rw-rw-r--
2022-10-31 11:36
bug65634.phpt
1.73
KB
-rw-rw-r--
2022-10-31 11:36
bug67430.phpt
1005
B
-rw-rw-r--
2022-10-31 11:36
bug69337.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
bug73297.phpt
654
B
-rw-rw-r--
2022-10-31 11:36
bug75535.phpt
637
B
-rw-rw-r--
2022-10-31 11:36
bug75981.phpt
600
B
-rw-rw-r--
2022-10-31 11:36
bug76342.phpt
734
B
-rw-rw-r--
2022-10-31 11:36
bug78719.phpt
740
B
-rw-rw-r--
2022-10-31 11:36
bug79265.phpt
900
B
-rw-rw-r--
2022-10-31 11:36
bug79265_2.phpt
811
B
-rw-rw-r--
2022-10-31 11:36
bug80838.phpt
838
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_01.phpt
704
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_02.phpt
916
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_03.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
http_response_header_04.phpt
679
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_05.phpt
644
B
-rw-rw-r--
2022-10-31 11:36
ignore_errors.phpt
2.53
KB
-rw-rw-r--
2022-10-31 11:36
server.inc
2.43
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #38802 (ignore_errors and max_redirects) --INI-- allow_url_fopen=1 --SKIPIF-- <?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?> --FILE-- <?php require 'server.inc'; function do_test($context_options) { $context = stream_context_create(array('http' => $context_options)); $responses = array( "data://text/plain,HTTP/1.0 302 Moved Temporarily\r\nLocation: http://127.0.0.1:12342/foo/bar2\r\n\r\n1", "data://text/plain,HTTP/1.0 301 Moved Permanently\r\nLocation: http://127.0.0.1:12342/foo/bar3\r\n\r\n", "data://text/plain,HTTP/1.0 302 Moved Temporarily\r\nLocation: http://127.0.0.1:12342/foo/bar4\r\n\r\n3", "data://text/plain,HTTP/1.0 200 OK\r\n\r\ndone.", ); $pid = http_server("tcp://127.0.0.1:12342", $responses, $output); $fd = fopen('http://127.0.0.1:12342/foo/bar', 'rb', false, $context); var_dump($fd); if ($fd) { $meta_data = stream_get_meta_data($fd); var_dump($meta_data['wrapper_data']); var_dump(stream_get_contents($fd)); } fseek($output, 0, SEEK_SET); var_dump(stream_get_contents($output)); http_server_kill($pid); } echo "-- Test: follow all redirections --\n"; do_test(array(), 4); echo "-- Test: fail after 2 redirections --\n"; do_test(array('max_redirects' => 2), 2); echo "-- Test: fail at first redirection --\n"; do_test(array('max_redirects' => 0), 1); echo "-- Test: fail at first redirection (2) --\n"; do_test(array('max_redirects' => 1), 1); echo "-- Test: return at first redirection --\n"; do_test(array('max_redirects' => 0, 'ignore_errors' => 1), 1); echo "-- Test: return at first redirection (2) --\n"; do_test(array('max_redirects' => 1, 'ignore_errors' => 1), 1); echo "-- Test: return at second redirection --\n"; do_test(array('max_redirects' => 2, 'ignore_errors' => 1), 2); ?> --EXPECTF-- -- Test: follow all redirections -- resource(%d) of type (stream) array(7) { [0]=> string(30) "HTTP/1.0 302 Moved Temporarily" [1]=> string(41) "Location: http://127.0.0.1:12342/foo/bar2" [2]=> string(30) "HTTP/1.0 301 Moved Permanently" [3]=> string(41) "Location: http://127.0.0.1:12342/foo/bar3" [4]=> string(30) "HTTP/1.0 302 Moved Temporarily" [5]=> string(41) "Location: http://127.0.0.1:12342/foo/bar4" [6]=> string(15) "HTTP/1.0 200 OK" } string(5) "done." string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close GET /foo/bar2 HTTP/1.0 Host: 127.0.0.1:12342 Connection: close GET /foo/bar3 HTTP/1.0 Host: 127.0.0.1:12342 Connection: close GET /foo/bar4 HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: fail after 2 redirections -- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s bool(false) string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close GET /foo/bar2 HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: fail at first redirection -- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s bool(false) string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: fail at first redirection (2) -- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s bool(false) string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: return at first redirection -- resource(%d) of type (stream) array(2) { [0]=> string(30) "HTTP/1.0 302 Moved Temporarily" [1]=> string(41) "Location: http://127.0.0.1:12342/foo/bar2" } string(1) "1" string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: return at first redirection (2) -- resource(%d) of type (stream) array(2) { [0]=> string(30) "HTTP/1.0 302 Moved Temporarily" [1]=> string(41) "Location: http://127.0.0.1:12342/foo/bar2" } string(1) "1" string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close " -- Test: return at second redirection -- resource(%d) of type (stream) array(4) { [0]=> string(30) "HTTP/1.0 302 Moved Temporarily" [1]=> string(41) "Location: http://127.0.0.1:12342/foo/bar2" [2]=> string(30) "HTTP/1.0 301 Moved Permanently" [3]=> string(41) "Location: http://127.0.0.1:12342/foo/bar3" } string(0) "" string(%d) "GET /foo/bar HTTP/1.0 Host: 127.0.0.1:12342 Connection: close GET /foo/bar2 HTTP/1.0 Host: 127.0.0.1:12342 Connection: close "