diff options
| author | David Coallier <davidc@php.net> | 2008-05-07 15:14:16 +0000 |
|---|---|---|
| committer | David Coallier <davidc@php.net> | 2008-05-07 15:14:16 +0000 |
| commit | fb2ae8ee734167e48a974ff80dedd432b2fa4366 (patch) | |
| tree | 9a9804809f1b0a5067c3664dd9605e046fef1fa1 | |
| parent | fd4e87c5d4374b5b5ab88d0c537be7deb952f2ec (diff) | |
| download | php-git-fb2ae8ee734167e48a974ff80dedd432b2fa4366.tar.gz | |
- Bug #44811 (Improved error message for creating invalid new SoapClient)
| -rw-r--r-- | ext/soap/tests/bugs/44811.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/44811.phpt b/ext/soap/tests/bugs/44811.phpt new file mode 100644 index 0000000000..341e5af512 --- /dev/null +++ b/ext/soap/tests/bugs/44811.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 |
