summaryrefslogtreecommitdiff
path: root/ext/soap/tests/bugs/bug70469.phpt
blob: 1186cc003f4f33eeee255c8883f244d765b31dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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