summaryrefslogtreecommitdiff
path: root/Zend/tests/bug40815.phpt
blob: 6f7477a9ebc9a7ab9f80aafd40a181994a9aa84e (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";
?>
--EXPECTF--	
foo