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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 1 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC