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 /
soap /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
bugs
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
interop
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
schema
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
soap12
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
any.phpt
2.26
KB
-rw-rw-r--
2022-10-31 11:36
bug46760.phpt
544
B
-rw-rw-r--
2022-10-31 11:36
bug47021.phpt
2.93
KB
-rw-rw-r--
2022-10-31 11:36
bug48557.phpt
1.78
KB
-rw-rw-r--
2022-10-31 11:36
bug48557.wsdl
1.36
KB
-rw-rw-r--
2022-10-31 11:36
bug49898.phpt
433
B
-rw-rw-r--
2022-10-31 11:36
bug68361.phpt
3.77
KB
-rw-rw-r--
2022-10-31 11:36
bug68996.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
bug69137.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
bug69668.phpt
916
B
-rw-rw-r--
2022-10-31 11:36
bug69668.wsdl
1.88
KB
-rw-rw-r--
2022-10-31 11:36
bug70211.phpt
527
B
-rw-rw-r--
2022-10-31 11:36
bug70388.phpt
492
B
-rw-rw-r--
2022-10-31 11:36
bug70875.phpt
795
B
-rw-rw-r--
2022-10-31 11:36
bug70875.wsdl
8.02
KB
-rw-rw-r--
2022-10-31 11:36
bug71610.phpt
518
B
-rw-rw-r--
2022-10-31 11:36
bug71711.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
bug71996.phpt
1.83
KB
-rw-rw-r--
2022-10-31 11:36
bug73037.phpt
3.69
KB
-rw-rw-r--
2022-10-31 11:36
bug73452.phpt
466
B
-rw-rw-r--
2022-10-31 11:36
bug77088.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
bug77410.phpt
733
B
-rw-rw-r--
2022-10-31 11:36
bug77410.wsdl
1.82
KB
-rw-rw-r--
2022-10-31 11:36
bug79357.phpt
416
B
-rw-rw-r--
2022-10-31 11:36
bug79357.wsdl
2.4
KB
-rw-rw-r--
2022-10-31 11:36
bug79536.phpt
1.6
KB
-rw-rw-r--
2022-10-31 11:36
bug80672.phpt
355
B
-rw-rw-r--
2022-10-31 11:36
bug80672.xml
249
B
-rw-rw-r--
2022-10-31 11:36
classmap.wsdl
2.46
KB
-rw-rw-r--
2022-10-31 11:36
classmap001.phpt
1.6
KB
-rw-rw-r--
2022-10-31 11:36
classmap002.phpt
1.25
KB
-rw-rw-r--
2022-10-31 11:36
classmap003.phpt
1015
B
-rw-rw-r--
2022-10-31 11:36
classmap003.wsdl
1.9
KB
-rw-rw-r--
2022-10-31 11:36
classmap004.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
custom_content_type.phpt
2.18
KB
-rw-rw-r--
2022-10-31 11:36
fault001.phpt
251
B
-rw-rw-r--
2022-10-31 11:36
fault_warning.phpt
1.03
KB
-rw-rw-r--
2022-10-31 11:36
server001.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
server002.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
server003.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
server004.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
server005.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
server006.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
server007.phpt
436
B
-rw-rw-r--
2022-10-31 11:36
server008.phpt
441
B
-rw-rw-r--
2022-10-31 11:36
server009.phpt
2.17
KB
-rw-rw-r--
2022-10-31 11:36
server010.phpt
2.03
KB
-rw-rw-r--
2022-10-31 11:36
server011.phpt
418
B
-rw-rw-r--
2022-10-31 11:36
server012.phpt
603
B
-rw-rw-r--
2022-10-31 11:36
server013.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
server014.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
server015.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
server016.phpt
1.07
KB
-rw-rw-r--
2022-10-31 11:36
server017.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
server018.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
server019.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
server020.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
server021.phpt
1.44
KB
-rw-rw-r--
2022-10-31 11:36
server022.phpt
1.18
KB
-rw-rw-r--
2022-10-31 11:36
server023.phpt
1.59
KB
-rw-rw-r--
2022-10-31 11:36
server024.phpt
1.8
KB
-rw-rw-r--
2022-10-31 11:36
server025.phpt
1.58
KB
-rw-rw-r--
2022-10-31 11:36
server025.wsdl
2.08
KB
-rw-rw-r--
2022-10-31 11:36
server026.phpt
1.3
KB
-rw-rw-r--
2022-10-31 11:36
server027.phpt
461
B
-rw-rw-r--
2022-10-31 11:36
server028.phpt
1.45
KB
-rw-rw-r--
2022-10-31 11:36
server029.phpt
1.83
KB
-rw-rw-r--
2022-10-31 11:36
server030.phpt
2.27
KB
-rw-rw-r--
2022-10-31 11:36
server030.wsdl
2.04
KB
-rw-rw-r--
2022-10-31 11:36
server031.phpt
2.74
KB
-rw-rw-r--
2022-10-31 11:36
setheaders.phpt
3.17
KB
-rw-rw-r--
2022-10-31 11:36
skipif.inc
84
B
-rw-rw-r--
2022-10-31 11:36
test.wsdl
1.93
KB
-rw-rw-r--
2022-10-31 11:36
transport001.phpt
805
B
-rw-rw-r--
2022-10-31 11:36
typemap001.phpt
2
KB
-rw-rw-r--
2022-10-31 11:36
typemap002.phpt
1.91
KB
-rw-rw-r--
2022-10-31 11:36
typemap003.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
typemap004.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
typemap005.phpt
2.05
KB
-rw-rw-r--
2022-10-31 11:36
typemap006.phpt
2.02
KB
-rw-rw-r--
2022-10-31 11:36
typemap007.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
typemap008.phpt
1.68
KB
-rw-rw-r--
2022-10-31 11:36
typemap009.phpt
1.61
KB
-rw-rw-r--
2022-10-31 11:36
typemap010.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
typemap011.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
typemap012.phpt
1.03
KB
-rw-rw-r--
2022-10-31 11:36
typemap013.phpt
1.99
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #73037 SoapServer reports Bad Request when gzipped, var 0 --CONFLICTS-- server --SKIPIF-- <?php require_once('skipif.inc'); if (!extension_loaded("zlib")) { echo "skip zlib is required for this test"; } if (!file_exists(__DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc")) { echo "skip sapi/cli/tests/php_cli_server.inc required but not found"; } ?> --FILE-- <?php include __DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc"; function get_data($max) { $piece = "<CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia</COMPANY> <PRICE>10.90</PRICE> <YEAR>1985</YEAR> </CD>"; $begin = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><CATALOG>'; $end = '</CATALOG></soapenv:Body></soapenv:Envelope>'; $min = strlen($begin) + strlen($piece) + strlen($end); $max = $max < $min ? $min : $max; $data = $begin; $data .= $piece; while (strlen($data) + strlen($end) < $max) { /* Randomize a bit, taking gzip in account. */ $tmp = str_replace( array( "Empire Burlesque", "Bob Dylan", ), array( md5(uniqid()), sha1(uniqid()), ), $piece ); if (strlen($begin) + strlen($tmp) + strlen($end) > $max) { break; } $data .= $tmp; } $data .= $end; return $data; } $router = "bug73037_server.php"; $args = substr(PHP_OS, 0, 3) == 'WIN' ? ["-d", "extension_dir=" . ini_get("extension_dir"), "-d", "extension=php_soap.dll"] : []; $code = <<<'PHP' $s = new SoapServer(NULL, array('uri' => 'http://here')); $s->setObject(new stdclass()); $s->handle(); PHP; php_cli_server_start($code, $router, $args); foreach (array(1024-1, 1024*8-3, 1024*9+1, 1024*16-1, 1024*32-5, 1024*64+3, 1024*128-7) as $k => $i) { echo "Iteration $k\n\n"; /* with and without compression */ foreach (array(false, true) as $b) { $data = get_data($i); if ($b) { $data = gzencode($data); } $len = strlen($data); //echo "len=$len\n"; $hdrs = <<<HDRS POST /bug73037_server.php HTTP/1.1 Content-Type: application/soap+xml; charset=UTF-8 Accept: application/soap+xml, application/dime, multipart/related, text/* SOAPAction: "urn:adressen#adressen#SetAda" Expect: 100-continue Content-Length: ${len} HDRS; if ($b) { $hdrs .="\nContent-Encoding: gzip"; } //echo "Headers sent:\n$hdrs\n\n"; $fp = fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT, $errno, $errstr, 5); if (!$fp) { die("connect failed"); } if(fwrite($fp, "$hdrs\n\n$data")) { $out = ""; while (!feof($fp)) { $out .= fread($fp, 1024); } $pos = strpos($out, "<env:Text>"); if (false === $pos) { echo $out; goto cleanup; } $pos0 = $pos + strlen("<env:Text>"); $pos = strpos($out, "</env:Text>"); if (false === $pos) { echo $out; goto cleanup; } $len = $pos - $pos0; echo substr($out, $pos0, $len); } cleanup: fclose($fp); echo "\n\n"; } } ?> ==DONE== --CLEAN-- <?php unlink(__DIR__ . DIRECTORY_SEPARATOR . "bug73037_server.php"); ?> --EXPECT-- Iteration 0 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 1 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 2 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 3 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 4 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 5 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist Iteration 6 Function 'CATALOG' doesn't exist Function 'CATALOG' doesn't exist ==DONE==