????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.118.193.52 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/soap/tests/ |
Upload File : |
--TEST-- Bug #48557 (Numeric string keys in Apache Hashmaps are not cast to integers) --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php error_reporting(E_ALL); ini_set('display_errors', 1); ini_set("soap.wsdl_cache_enabled", 0); function test($map) { var_dump($map, $map[1], $map[2]);die; } $y = new SoapServer(dirname(__FILE__) . '/bug48557.wsdl'); $y->addfunction("test"); $request = <<<XML <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://test-uri/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:test> <testParam xsi:type="ns2:Map"> <item> <key xsi:type="xsd:int">1</key> <value xsi:type="xsd:int">123</value> </item> <item> <key xsi:type="xsd:int">-1000</key> <value xsi:type="xsd:string">123</value> </item> <item> <key xsi:type="xsd:string">2</key> <value xsi:type="xsd:float">123.5</value> </item> <item> <key xsi:type="xsd:string">-2000</key> <value xsi:type="xsd:float">123.5</value> </item> <item> <key xsi:type="xsd:string">011</key> <value xsi:type="xsd:float">123.5</value> </item> <item> <key xsi:type="xsd:int">012</key> <value xsi:type="xsd:float">123.5</value> </item> </testParam> </ns1:test> </SOAP-ENV:Body> </SOAP-ENV:Envelope> XML; $y->handle($request); ?> ===DONE=== --EXPECTF-- array(6) { [1]=> int(123) [-1000]=> %string|unicode%(3) "123" [2]=> float(123.5) [-2000]=> float(123.5) [%u|b%"011"]=> float(123.5) [12]=> float(123.5) } int(123) float(123.5)