Bug #17985 Updated: SOAP Class Value Type Issue

From: Date: Wed, 26 Jun 2002 01:20:18 +0000
Subject: Bug #17985 Updated: SOAP Class Value Type Issue
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7364@lists.php.net to get a copy of this message
ID: 17985 Updated by: shane@caraveo.com Reported By: programming@cari.net Status: Open Bug Type: PEAR related Operating System: Linux PHP Version: 4.1.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-06-25 19:39:37] programming@cari.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17985&edit=1

« previous php.pear.dev (#7364) next »