diff options
author | Xinchen Hui <laruence@php.net> | 2012-10-18 16:06:47 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-10-18 16:06:47 +0800 |
commit | 2fee6f1ee9205bc14985ab0cfa886d5865139b32 (patch) | |
tree | c7de58c0de1bbcf6345c4a33491c8cff9dae9f83 | |
parent | 804ab5dc48e6f7632aea7401adb328dd8c86c456 (diff) | |
parent | 08b9702f8a190876a23f75844978831dd563853e (diff) | |
download | php-git-2fee6f1ee9205bc14985ab0cfa886d5865139b32.tar.gz |
Merge branch 'PHP-5.4'
-rw-r--r-- | Zend/tests/bug63055.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/tests/bug63055.phpt b/Zend/tests/bug63055.phpt index 0901e5b34e..16c50b54e5 100644 --- a/Zend/tests/bug63055.phpt +++ b/Zend/tests/bug63055.phpt @@ -2,20 +2,20 @@ Bug #63055 (Segfault in zend_gc with SF2 testsuite) --FILE-- <?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"); -$dummy = array("dummy"); +$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; -$ma = $matches; preg_match_all("/(\d)+/", "foo123456bar", $matches); echo "okey"; ?> |