|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18916 xmlrpc_set_type() "not working"
Submitted: 2002-08-15 08:50 UTC Modified: 2008-09-10 00:10 UTC
From: hfuecks at pinkgoblin dot com Assigned:
Status: Closed Package: XMLRPC-EPI related
PHP Version: 4.2.2 OS: Windows NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hfuecks at pinkgoblin dot com
New email:
PHP Version: OS:


 [2002-08-15 08:50 UTC] hfuecks at pinkgoblin dot com
The function xmlrpc_set_type() returns true but fails to change type.

Using like;

$params = date("Ymd\TH:i:s", time());

xmlrpc_set_type ( $params, datetime );

$response = xmlrpc_encode ( $params );


<?xml version='1.0' encoding="utf-8" ?>

This should be;

<?xml version='1.0' encoding="utf-8" ?>

Same applies for type "base64".

Using xmlrpc-epi v. 0.50

Active Windows extensions are;

;Windows Extensions



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-15 09:06 UTC]
What if you change:
xmlrpc_set_type ( $params, datetime ); 
xmlrpc_set_type ( $params, "datetime" );

As there aren't such constants defined. Anyways, your example worked fine for me with latest CVS.


 [2002-08-15 11:12 UTC] 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 11:16 UTC]
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.
 [2008-09-10 00:10 UTC]
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
Thank you for the report, and for helping us make PHP better.

Fixed in 5.2.7, 5.3, HEAD.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 12 17:01:24 2021 UTC