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-- SOAP Server 31: Handling classes which implements Iterator --SKIPIF-- <?php require_once('skipif.inc'); ?> --INI-- soap.wsdl_cache_enabled=0 --FILE-- <?php class ItemArray implements Iterator { private $a = array(); public function __construct(array $a) { $this->a = $a; } public function rewind() { return reset($this->a); } public function current() { return current($this->a); } public function key() { return key($this->a); } public function next() { return next($this->a); } public function valid() { return (current($this->a) !== false); } } class Item { public $text; public function __construct($n) { $this->text = 'text'.$n; } } class handlerClass { public function getItems() { return new ItemArray(array( new Item(0), new Item(1), new Item(2), new Item(3), new Item(4), new Item(5), new Item(6), new Item(7), new Item(8), new Item(9) )); } } $server = new SoapServer(__DIR__."/server030.wsdl"); $server->setClass('handlerClass'); $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <getItems/> </SOAP-ENV:Body> </SOAP-ENV:Envelope> EOF; $server->handle($HTTP_RAW_POST_DATA); echo "ok\n"; ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://testuri.org" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getItemsResponse><getItemsReturn SOAP-ENC:arrayType="ns1:Item[10]" xsi:type="ns1:ItemArray"><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text0</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text1</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text2</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text3</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text4</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text5</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text6</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text7</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text8</text></item><item xsi:type="ns1:Item"><text xsi:type="xsd:string">text9</text></item></getItemsReturn></ns1:getItemsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> ok