php.net |  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
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC