summaryrefslogtreecommitdiff
path: root/ext/soap/tests/bugs/bug70469.phpt
diff options
context:
space:
mode:
authorAnton Artamonov <a.artmnv@gmail.com>2017-11-04 19:51:33 +0700
committerNikita Popov <nikita.ppv@gmail.com>2017-11-22 23:15:46 +0100
commit1dfcd1af9aab9b760d971ceeac18e9e83c85f80f (patch)
tree54327521d2524d27db212f1176b3f2acc28a2a78 /ext/soap/tests/bugs/bug70469.phpt
parent201930106d2a7ae6c0673d10ca61418c9e23cdf7 (diff)
downloadphp-git-1dfcd1af9aab9b760d971ceeac18e9e83c85f80f.tar.gz
Fixed bug #70469
Don't generate an E_ERROR if we've already thrown an exception. This interacts badly with error_get_last() checks.
Diffstat (limited to 'ext/soap/tests/bugs/bug70469.phpt')
-rw-r--r--ext/soap/tests/bugs/bug70469.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/bug70469.phpt b/ext/soap/tests/bugs/bug70469.phpt
new file mode 100644
index 0000000000..ca3ab80950
--- /dev/null
+++ b/ext/soap/tests/bugs/bug70469.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+try {
+ $x = new SoapClient('http://i_dont_exist.com/some.wsdl');
+} catch (SoapFault $e) {
+ echo "catched\n";
+}
+
+$error = error_get_last();
+if ($error === null) {
+ echo "ok\n";
+}
+?>
+--EXPECT--
+catched
+ok \ No newline at end of file