Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Mar 15, 2007
1 parent 99def5c commit 98c6f18
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Zend/tests/bug40815.phpt
@@ -0,0 +1,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

0 comments on commit 98c6f18

Please sign in to comment.