From: afalak at poczta dot onet dot pl
Operating system: Windows 2000
PHP version: 5CVS-2006-07-04 (CVS)
PHP Bug Type: SOAP related
Bug description: SoapFault faultstring doesn't follow encoding rules
Description:
------------
When encoding is set for both SoapClient and SoapServer (i.e. ISO-8859-1)
parameters are encoded automatically. But this doesn't apply to SoapFault.
Including any national character in fault string causes an error "Fatal
error: Uncaught SoapFault exception: [Client] looks like we got no XML
document in ..."
Reproduce code:
---------------
[client]
<?php
$client = new SoapClient('a.wsdl'
,array('encoding' => 'ISO-8859-1')
);
$res = $client->Test();
?>
[server]
<?php
function Test() {
return new SoapFault('Test', 'This is our fault: Ä');
}
$server = new SoapServer('a.wsdl', array('encoding' => 'ISO-8859-1'));
$server->addFunction('Test');
$server->handle();
?>
[a.wsdl]
//not important for this error
Expected result:
----------------
Soap exception with message being SoapFault's parameter
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [Client] looks like we got no
XML document in ...
--
Edit bug report at http://bugs.php.net/?id=38005&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38005&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38005&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38005&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38005&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38005&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38005&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38005&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38005&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38005&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38005&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38005&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38005&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38005&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38005&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38005&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38005&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38005&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38005&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38005&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38005&r=mysqlcfg