Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled) --EXTEN..
Decoded Output download
--TEST--
Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled)
--EXTENSIONS--
soap
--FILE--
<?php
try {
$x = new SoapClient('http://i_dont_exist.com/some.wsdl');
} catch (SoapFault $e) {
echo "caught
";
}
$error = error_get_last();
if ($error === null) {
echo "ok
";
}
?>
--EXPECT--
caught
ok
Did this file decode correctly?
Original Code
--TEST--
Bug #70469 (SoapClient should not generate E_ERROR if exceptions enabled)
--EXTENSIONS--
soap
--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
Function Calls
None |
Stats
MD5 | 9e586f1cb2172bf301680ce1d9af1235 |
Eval Count | 0 |
Decode Time | 120 ms |