Permalink
Browse files

- New template

  • Loading branch information...
1 parent 96cd8e0 commit 96d1c6e559d056d5a1fafc66ebc0ade9180aad41 @felipensp committed Oct 18, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 phphunter/template/1_010.t
View
@@ -0,0 +1,16 @@
+<?php
+/* the default gc root size is 10,000 */
+for ($i=0; $i<9998; $i++) {
+ $array = array();
+ $array[0] = &$array;
+ unset($array);
+}
+
+$matches = array("foo" => "bar"); /* this bucket will trigger the segfault */
+$dummy = array("dummy"); /* used to trigger gc_collect_cycles */
+$dummy[1] = &$dummy;
+
+$matches[1] = &$matches;
+$matches[2] = $dummy;
+
+%{funcname}(%{args2}$matches);

0 comments on commit 96d1c6e

Please sign in to comment.