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 #64135 (Exceptions from set_error_handler are not always propagated) --FILE--..

Decoded Output download

--TEST--
Bug #64135 (Exceptions from set_error_handler are not always propagated)
--FILE--
<?php

function exception_error_handler() {
        throw new Exception();
}

set_error_handler("exception_error_handler");
try {
   $undefined->undefined();
} catch(Throwable $e) {
    echo "Exception is thrown";
}
?>
--EXPECT--
Exception is thrown

Did this file decode correctly?

Original Code

--TEST--
Bug #64135 (Exceptions from set_error_handler are not always propagated)
--FILE--
<?php

function exception_error_handler() {
        throw new Exception();
}

set_error_handler("exception_error_handler");
try {
   $undefined->undefined();
} catch(Throwable $e) {
    echo "Exception is thrown";
}
?>
--EXPECT--
Exception is thrown

Function Calls

set_error_handler 1

Variables

None

Stats

MD5 21af8eb9ed197028afd5098be5287fd1
Eval Count 0
Decode Time 77 ms