]> granicus.if.org Git - php/commitdiff
Fixed bug #43426 (crash on nested call_user_func() calls)
authorDmitry Stogov <dmitry@php.net>
Thu, 24 Jan 2008 09:47:00 +0000 (09:47 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 24 Jan 2008 09:47:00 +0000 (09:47 +0000)
NEWS
Zend/tests/bug43426.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 2af914c8b253266b4c50f181a4c2df2bcabad949..64dd091ad4995babf294720a3a516934bb870bea 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -89,6 +89,7 @@ PHP                                                                        NEWS
   duplicate NULL values). (Felipe, Tony)
 - Fixed bug #43527 (DateTime created from a timestamp reports environment
   timezone). (Derick)
+- Fixed bug #43426 (crash on nested call_user_func() calls). (Dmitry)
 - Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00). (Derick)
 - Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
   using a timestamp). (Derick)
diff --git a/Zend/tests/bug43426.phpt b/Zend/tests/bug43426.phpt
new file mode 100644 (file)
index 0000000..73c38df
--- /dev/null
@@ -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