summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDavid Coallier <davidc@php.net>2008-05-07 14:56:37 +0000
committerDavid Coallier <davidc@php.net>2008-05-07 14:56:37 +0000
commit8a346e12571ebbc952df9921b25c52e0ceba1e11 (patch)
tree01cde775d99fc3837bb854f59c59a32e0350b5d9 /ext
parentfe5e6c081e98f5ac9e3ccc7e41e949ef763c7912 (diff)
downloadphp-git-8a346e12571ebbc952df9921b25c52e0ceba1e11.tar.gz
- Test for bug #44811 (Improve error message when new SoapClient has invalid data)
Diffstat (limited to 'ext')
-rw-r--r--ext/soap/tests/bugs/bug44811.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/bug44811.phpt b/ext/soap/tests/bugs/bug44811.phpt
new file mode 100644
index 0000000000..341e5af512
--- /dev/null
+++ b/ext/soap/tests/bugs/bug44811.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #44811 (Improve error messages when creating new SoapClient
+ which contains invalid data)
+--SKIPIF--
+<?php require_once 'skipif.inc'; ?>
+--INI--
+soap.wsdl_cache_enabled=0
+--FILE--
+<?php
+try {
+ $x = new SoapClient('http://slashdot.org');
+} catch (SoapFault $e) {
+ echo $e->getMessage() . PHP_EOL;
+}
+die('ok');
+?>
+--EXPECT--
+SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://slashdot.org' : Premature end of data in tag html line 3
+
+ok