|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17985 SOAP Class Value Type Issue
Submitted: 2002-06-25 19:39 UTC Modified: 2002-06-26 11:50 UTC
From: programming at cari dot net Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.1.2 OS: Linux
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: programming at cari dot net
New email:
PHP Version: OS:


 [2002-06-25 19:39 UTC] programming at cari dot net
We discovered a problem with the type detection code in Base.php within the SOAP class.  It incorectly detects strings like CC or even abcd as 'hexBinary'.  It took us quite a while to discover what was happening.  The server then takes the string and tries to un-hex it.  This leads to incorrect data arriving at the server.  The code in Base.php looks like this:

if (SOAP_Type_hexBinary::is_hexbin($value)) {
    $type = 'hexBinary';
} else

We simply commented it out so that it wouldn't change the type.  I know what this code is trying to do, but this is probably not the best way to do it.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-25 21:20 UTC] shane at caraveo dot com
You can set the class variable SOAP_BASE::doconversion to false to skip that section of code.  I think I'll set that to false by default.
 [2002-06-26 11:50 UTC] programming at cari dot net
Maybe if I could read I wouldn't have these problems.  Thank you that worked just fine.  Setting the default to FALSE would probably be a good thing, this conversion is probably not what you would normally want to happen.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 23:01:27 2024 UTC