cvs: ZendEngine2 /tests bug43426.phpt

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1201168030@cvsserver>
dmitry		Thu Jan 24 09:47:10 2008 UTC

  Modified files:              
    /ZendEngine2/tests	bug43426.phpt 
  Log:
  Fixed bug #43426 (crash on nested call_user_func() calls)
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug43426.phpt?r1=1.1&r2=1.2&diff_format=u
Index: ZendEngine2/tests/bug43426.phpt
diff -u /dev/null ZendEngine2/tests/bug43426.phpt:1.2
--- /dev/null	Thu Jan 24 09:47:10 2008
+++ ZendEngine2/tests/bug43426.phpt	Thu Jan 24 09:47:10 2008
@@ -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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.