1--TEST-- 2Bug #18916 (xmlrpc_set_type() not working) 3--SKIPIF-- 4<?php if (!extension_loaded("xmlrpc")) print "skip"; ?> 5--INI-- 6date.timezone="America/Sao_Paulo" 7--FILE-- 8<?php 9 10$params = date("Ymd\TH:i:s", time()); 11xmlrpc_set_type($params, 'datetime'); 12echo xmlrpc_encode($params); 13 14?> 15--EXPECTF-- 16<?xml version="1.0" encoding="utf-8"?> 17<params> 18<param> 19 <value> 20 <dateTime.iso8601>%dT%d:%d:%d</dateTime.iso8601> 21 </value> 22</param> 23</params> 24