diff options
author | Anton Artamonov <a.artmnv@gmail.com> | 2017-11-04 19:51:33 +0700 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-11-22 23:15:46 +0100 |
commit | 1dfcd1af9aab9b760d971ceeac18e9e83c85f80f (patch) | |
tree | 54327521d2524d27db212f1176b3f2acc28a2a78 /ext/soap/tests/bugs/bug70469.phpt | |
parent | 201930106d2a7ae6c0673d10ca61418c9e23cdf7 (diff) | |
download | php-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.phpt | 20 |
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 |