summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-08-10 16:18:09 +0000
committerSVN Migration <svn@php.net>2004-08-10 16:18:09 +0000
commit02893ad2168a8ca46a126ca61af4f4a1025288d1 (patch)
tree9f9a6fb24e123804738f57dae961e1040b10cbbe
parent4f8870315933675d8f7731318415a475c3684e15 (diff)
downloadphp-git-02893ad2168a8ca46a126ca61af4f4a1025288d1.tar.gz
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
-rw-r--r--ext/soap/tests/bugs/bug28969.phpt38
1 files changed, 38 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/bug28969.phpt b/ext/soap/tests/bugs/bug28969.phpt
new file mode 100644
index 0000000000..af2fb10290
--- /dev/null
+++ b/ext/soap/tests/bugs/bug28969.phpt
@@ -0,0 +1,38 @@
+--TEST--
+Bug #28969 (Wrong data encoding of special characters)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+function test() {
+ return "¦è¥";
+// return utf8_encode("¦è¥");
+}
+
+class LocalSoapClient extends SoapClient {
+
+ function LocalSoapClient($wsdl, $options) {
+ $this->SoapClient($wsdl, $options);
+ $this->server = new SoapServer($wsdl, $options);
+ $this->server->addFunction('test');
+ }
+
+ function __doRequest($request, $location, $action, $version) {
+ ob_start();
+ $this->server->handle($request);
+ $response = ob_get_contents();
+ ob_end_clean();
+ return $response;
+ }
+
+}
+
+$x = new LocalSoapClient(NULL,array('location'=>'test://',
+ 'uri'=>'http://testuri.org',
+ 'encoding'=>'ISO-8859-1'));
+var_dump($x->test());
+echo "ok\n";
+?>
+--EXPECT--
+string(3) "¦è¥"
+ok