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.41
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 #47021 (SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked") --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 stream_notification_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) { switch($notification_code) { case STREAM_NOTIFY_MIME_TYPE_IS: echo "Type='$message'\n"; break; case STREAM_NOTIFY_FILE_SIZE_IS: echo "Size=$bytes_max\n"; break; } } function do_test($num_spaces, $leave_trailing_space=false) { // SOAPClient exhibits the bug because it forces HTTP/1.1, // whereas file_get_contents() uses HTTP/1.0 by default. $options = [ 'http' => [ 'protocol_version' => '1.1', 'header' => 'Connection: Close' ], ]; $ctx = stream_context_create($options); stream_context_set_params($ctx, array("notification" => "stream_notification_callback")); $spaces = str_repeat(' ', $num_spaces); $trailing = ($leave_trailing_space ? ' ' : ''); $responses = [ "data://text/plain,HTTP/1.1 200 OK\r\n" . "Content-Type:{$spaces}text/plain{$trailing}\r\n" . "Transfer-Encoding:{$spaces}Chunked{$trailing}\r\n\r\n" . "5\nHello\n0\n", "data://text/plain,HTTP/1.1 200 OK\r\n" . "Content-Type\r\n" // Deliberately invalid header . "Content-Length:{$spaces}5{$trailing}\r\n\r\n" . "World" ]; $pid = http_server('tcp://127.0.0.1:12342', $responses); echo file_get_contents('http://127.0.0.1:12342/', false, $ctx); echo "\n"; echo file_get_contents('http://127.0.0.1:12342/', false, $ctx); echo "\n"; http_server_kill($pid); } // Chunked decoding should be recognised by the HTTP stream wrapper regardless of whitespace // Transfer-Encoding:Chunked do_test(0); echo "\n"; // Transfer-Encoding: Chunked do_test(1); echo "\n"; // Transfer-Encoding: Chunked do_test(2); echo "\n"; // Trailing space at end of header do_test(1, true); echo "\n"; ?> --EXPECT-- Type='text/plain' Hello Size=5 World Type='text/plain' Hello Size=5 World Type='text/plain' Hello Size=5 World Type='text/plain' Hello Size=5 World