xref: /PHP-8.2/Zend/tests/bug40815.phpt (revision f8d79582)
1--TEST--
2Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
3--FILE--
4<?php
5
6class ehandle{
7    static public function exh ($ex) {
8        echo 'foo';
9    }
10}
11
12set_exception_handler("ehandle::exh");
13
14throw new Exception ("Whiii");
15echo "Done\n";
16?>
17--EXPECT--
18foo
19