Edit report at https://bugs.php.net/bug.php?id=55448&edit=1
ID: 55448 User updated by: sunfundev at gmail dot com Reported by: sunfundev at gmail dot com -Summary: XML Error when +Summary: Error at a Soap request Status: Open Type: Bug Package: SOAP related Operating System: Windows/FreeBSD PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Change title Previous Comments: ------------------------------------------------------------------------ [2011-08-18 14:10:56] sunfundev at gmail dot com Description: ------------ PHP 5.3.6 on Windows and FreeBSD There is a problem with soap-call when one of the parameters contains control characters. Expected result: ---------------- $options = array( "location" => Config::$config['soap_location'], "uri" => Config::$config['soap_uri'], "trace" => 1, "exceptions" => true ); $soap_client = new SoapClient(null, $options); $result = $soap_client->login(array('user_name'=>Config::$config['login'],'password'=Config::$config['password'])); $session_id = $result->id; $entrie = array( array('name' => 'first_name', 'value' => 'normal string'), array('name' => 'last_name', 'value' => (string)chr(0x1A)), array('name' => 'email1', 'value' => 'soapt...@soaptest.com') ); $soap_client->__soapCall("set_entries", array($session_id, 'Leads', array($entrie))); Actual result: -------------- Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] error in msg parsing: XML error parsing SOAP payload on line 2: Invalid character in H:\xampp\htdocs\test.php:55 Stack trace: #0 H:\xampp\htdocs\test.php(55): SoapClient->__soapCall('set_entries', Array) #1 {main} thrown in H:\xampp\htdocs\test.php on line 55 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55448&edit=1