Bug #70526 [NEW]: xmlrpc_set_type returns false on success

From: Date: Fri, 18 Sep 2015 19:23:46 +0000
Subject: Bug #70526 [NEW]: xmlrpc_set_type returns false on success
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196073@lists.php.net to get a copy of this message
From: rainer dot jung at kippdata dot de Operating system: Any PHP version: 7.0.0RC3 Package: Unknown/Other Function Bug Type: Bug Bug description:xmlrpc_set_type returns false on success Description: ------------ xmlrpc_set_type() returns false on success. By documentation under http://php.net/manual/en/function.xmlrpc-set-type.php it should return true on success. This is correct for PHP until 5.6(.13), but no longer correct for PHP 7. Test script: --------------- <?php $params = date("Ymd\TH:i:s", time()); $rv = xmlrpc_set_type($params, 'datetime'); echo "xmlrpc_encode of result:\n"; echo xmlrpc_encode($params); echo "\nvar_dump of return value:\n"; var_dump($rv); echo "\nvar_dump of result:\n"; var_dump($params); ?> Expected result: ---------------- xmlrpc_encode of result: <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <dateTime.iso8601>20150918T19:16:44</dateTime.iso8601> </value> </param> </params> var_dump of return value: bool(true) var_dump of result: object(stdClass)#1 (3) { ["scalar"]=> string(17) "20150918T19:16:44" ["xmlrpc_type"]=> string(8) "datetime" ["timestamp"]=> int(1442603804) } Actual result: -------------- xmlrpc_encode of result: <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <dateTime.iso8601>20150918T19:16:44</dateTime.iso8601> </value> </param> </params> var_dump of return value: bool(false) var_dump of result: object(stdClass)#1 (3) { ["scalar"]=> string(17) "20150918T19:16:44" ["xmlrpc_type"]=> string(8) "datetime" ["timestamp"]=> int(1442603804) } -- Edit bug report at https://bugs.php.net/bug.php?id=70526&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70526&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70526&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70526&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70526&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70526&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70526&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70526&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70526&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70526&r=support Expected behavior: https://bugs.php.net/fix.php?id=70526&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70526&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70526&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70526&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70526&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70526&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70526&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70526&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70526&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70526&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70526&r=mysqlcfg

« previous php.bugs (#196073) next »