--TEST-- SOAP XML Schema 32: Structure (choice) --EXTENSIONS-- soap xml --FILE-- EOF; test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5)); echo "ok"; ?> --EXPECTF-- 123 object(stdClass)#%d (1) { ["int"]=> int(123) } ok