summaryrefslogtreecommitdiff
path: root/Zend/tests/bug40815.phpt
blob: 5ca5fd8368e89a5c1dd31d6472f0a474ba18dc71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
--FILE--
<?php

class ehandle{
	static public function exh ($ex) {
		echo 'foo';
	}
}

set_exception_handler("ehandle::exh");

throw new Exception ("Whiii");
echo "Done\n";
?>
--EXPECT--	
foo