summaryrefslogtreecommitdiff
path: root/Zend/tests/bug64135.phpt
blob: e4be3e0c6457f1295718e2b63141572e6ce3fd47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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