#18916 [NoF->Csd]: xmlrpc_set_type() "not working"
| From: | felipe@php.net | Date: | Wed, 10 Sep 2008 00:10:43 +0000 |
| Subject: | #18916 [NoF->Csd]: xmlrpc_set_type() "not working" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128823@lists.php.net to get a copy of this message | ||
ID: 18916
Updated by: felipe@php.net
Reported By: hfuecks at pinkgoblin dot com
-Status: No Feedback
+Status: Closed
Bug Type: XMLRPC-EPI related
Operating System: Windows NT 4.0
PHP Version: 4.2.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Fixed in 5.2.7, 5.3, HEAD.
Previous Comments:
------------------------------------------------------------------------
[2002-09-21 01:53:51] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2002-08-15 11:16:26] kalowsky@php.net
Please note he stated the version that worked was the current CVS
version. So it may still not work on your PHP 4.2.2, but will be fixed
in the next release (probably PHP 4.3)... try out an non-Stable snapshot
and see if you can. http://snaps.php.net.
------------------------------------------------------------------------
[2002-08-15 11:12:41] hfuecks at pinkgoblin dot com
Strange. Still not working with;
xmlrpc_set_type ( $params, "datetime" );
either. Perhaps an issue specific only to my install. Will try some
other environments. And get back here.
------------------------------------------------------------------------
[2002-08-15 09:06:45] sniper@php.net
What if you change:
xmlrpc_set_type ( $params, datetime );
to
xmlrpc_set_type ( $params, "datetime" );
As there aren't such constants defined. Anyways, your example worked
fine for me with latest CVS.
--Jani
------------------------------------------------------------------------
[2002-08-15 08:50:08] hfuecks at pinkgoblin dot com
The function xmlrpc_set_type() returns true but fails to change type.
Using like;
<?php
$params = date("Ymd\TH:i:s", time());
xmlrpc_set_type ( $params, datetime );
$response = xmlrpc_encode ( $params );
?>
Produces;
<?xml version='1.0' encoding="utf-8" ?>
<params>
<param>
<value>
<string>20020815T14:45:29</string>
</value>
</param>
</params>
This should be;
<?xml version='1.0' encoding="utf-8" ?>
<params>
<param>
<value>
<dateTime.iso8601>20020815T14:45:29</dateTime.iso8601>
</value>
</param>
</params>
Same applies for type "base64".
Using xmlrpc-epi v. 0.50
Active Windows extensions are;
;Windows Extensions
;
extension=php_curl.dll
extension=php_gd.dll
extension=php_imap.dll
extension=php_pdf.dll
extension=php_xmlrpc.dll
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18916&edit=1