Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / pcre / tests / bug63055.phpt
blob16c50b54e5e2b46a0b716a03acca5eab1f4640b8
1 --TEST--
2 Bug #63055 (Segfault in zend_gc with SF2 testsuite)
3 --FILE--
4 <?php
5 /* the default gc root size is 10,000 */
6 for ($i=0; $i<9998; $i++) {
7     $array = array();
8     $array[0] = &$array;
9     unset($array);
12 $matches = array("foo" => "bar"); /* this bucket will trigger the segfault */
13 $dummy   = array("dummy");        /* used to trigger gc_collect_cycles */
14 $dummy[1] = &$dummy;
16 $matches[1] = &$matches;
17 $matches[2] = $dummy;
19 preg_match_all("/(\d)+/", "foo123456bar", $matches);
20 echo "okey";
22 --EXPECTF--
23 okey