summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/bug43426.phpt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Zend/tests/bug43426.phpt b/Zend/tests/bug43426.phpt
new file mode 100644
index 0000000000..73c38df2ba
--- /dev/null
+++ b/Zend/tests/bug43426.phpt
@@ -0,0 +1,39 @@
+--TEST--
+Bug #43426 (crash on nested call_user_func calls)
+--FILE--
+<?php
+$c = 1; // doesn't matter
+call_user_func("foo2", $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c,
+$c,
+ $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c, $c);
+function foo2($d) {}
+echo "ok\n";
+?>
+--EXPECT--
+ok