xref: /PHP-7.3/Zend/tests/bug40815.phpt (revision 782352c5)
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