xref: /php-src/ext/soap/tests/bugs/bug70469.phpt (revision 7f2f0c00)
1--TEST--
2Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7try {
8    $x = new SoapClient('http://i_dont_exist.com/some.wsdl');
9} catch (SoapFault $e) {
10    echo "caught\n";
11}
12
13$error = error_get_last();
14if ($error === null) {
15    echo "ok\n";
16}
17?>
18--EXPECT--
19caught
20ok
21