summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-03-15 16:43:01 +0000
committerAntony Dovgal <tony2001@php.net>2007-03-15 16:43:01 +0000
commit98c6f184b24ab3415c2b138a663b1a77bf45d0c5 (patch)
treeee41b2717b84fb7ee9a6788b042faddbf3e5f3fb
parent99def5cac2c48a0cb866d056f46739a283b308cc (diff)
downloadphp-git-98c6f184b24ab3415c2b138a663b1a77bf45d0c5.tar.gz
new test
-rw-r--r--Zend/tests/bug40815.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug40815.phpt b/Zend/tests/bug40815.phpt
new file mode 100644
index 0000000000..6f7477a9eb
--- /dev/null
+++ b/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