summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72107.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug72107.phpt')
-rw-r--r--Zend/tests/bug72107.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug72107.phpt b/Zend/tests/bug72107.phpt
new file mode 100644
index 0000000000..3f4c46cf70
--- /dev/null
+++ b/Zend/tests/bug72107.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #72107: Segfault when using func_get_args as error handler
+--FILE--
+<?php
+set_error_handler('func_get_args');
+function test($a) {
+ echo $undef;
+}
+test(1);
+?>
+--EXPECTF--
+Warning: Cannot call func_get_args() dynamically in %s on line %d
+
+Notice: Undefined variable: undef in %s on line %d