php-8.0.30-src/ext/soap/tests/bugs/bug70469.phpt

21 lines
356 B
PHP

--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 "caught\n";
}
$error = error_get_last();
if ($error === null) {
echo "ok\n";
}
?>
--EXPECT--
caught
ok