PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-xmlrpc_1.0.0-0.RC3.el8
/
tests
--TEST-- Bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime) --SKIPIF-- <?php if (!extension_loaded("xmlrpc")) print "skip"; ?> --FILE-- <?php function DecodeDatetime($datetime) { print "\nISO 8601 datetime $datetime\n"; $obj = xmlrpc_decode("<?xml version=\"1.0\"?><methodResponse><params><param><value><dateTime.iso8601>$datetime</dateTime.iso8601></value></param></params></methodResponse>"); print_r($obj); } DecodeDatetime("20010909T01:46:40Z"); DecodeDatetime("20010909T00:46:40-01"); DecodeDatetime("2001-09-09T08:46:40+07:00"); DecodeDatetime("2001-09-08T21:46:40-0400"); ?> --EXPECT-- ISO 8601 datetime 20010909T01:46:40Z stdClass Object ( [scalar] => 20010909T01:46:40Z [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 20010909T00:46:40-01 stdClass Object ( [scalar] => 20010909T00:46:40-01 [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 2001-09-09T08:46:40+07:00 stdClass Object ( [scalar] => 2001-09-09T08:46:40+07:00 [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 2001-09-08T21:46:40-0400 stdClass Object ( [scalar] => 2001-09-08T21:46:40-0400 [xmlrpc_type] => datetime [timestamp] => 1000000000 )
[-] 003.phpt
[edit]
[-] bug70728.phpt
[edit]
[-] 001.phpt
[edit]
[-] bug40576.phpt
[edit]
[-] 006.phpt
[edit]
[-] bug72155.phpt
[edit]
[-] bug45226.phpt
[edit]
[-] bug18916.phpt
[edit]
[-] bug61264.phpt
[edit]
[-] bug40576_64bit.phpt
[edit]
[-] bug61097.phpt
[edit]
[-] bug50282.phpt
[edit]
[-] bug71501.phpt
[edit]
[-] 007.phpt
[edit]
[-] bug47818.phpt
[edit]
[-] bug50761.phpt
[edit]
[-] bug42189.phpt
[edit]
[-] 004.phpt
[edit]
[-] bug50285.phpt
[edit]
[-] bug77242.phpt
[edit]
[+]
..
[-] bug70728_64bit.phpt
[edit]
[-] 002.phpt
[edit]
[-] bug37057.phpt
[edit]
[-] bug42736.phpt
[edit]
[-] 005.phpt
[edit]
[-] bug70526.phpt
[edit]
[-] bug38431.phpt
[edit]
[-] bug51288.phpt
[edit]
[-] bug45555.phpt
[edit]
[-] bug77380.phpt
[edit]
[-] bug68027.phpt
[edit]
[-] bug74975.phpt
[edit]
[-] bug45556.phpt
[edit]
[-] bug44996.phpt
[edit]
[-] bug72647.phpt
[edit]