From:
Operating system: Windows/FreeBSD
PHP version: 5.3.6
Package: SOAP related
Bug Type: Bug
Bug description:XML Error when
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 bug report at https://bugs.php.net/bug.php?id=55448&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55448&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55448&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=55448&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55448&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=55448&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55448&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=55448&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=55448&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=55448&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=55448&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=55448&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=55448&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=55448&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55448&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=55448&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=55448&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=55448&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=55448&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=55448&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=55448&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=55448&r=mysqlcfg