Commit: 08b9702f8a190876a23f75844978831dd563853e Author: Xinchen Hui <larue...@php.net> Thu, 18 Oct 2012 16:06:20 +0800 Parents: ccc519b7a92bfe4b191c0e2e3869516171247ac2 Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=08b9702f8a190876a23f75844978831dd563853e Log: Add comments Changed paths: M Zend/tests/bug63055.phpt Diff: diff --git a/Zend/tests/bug63055.phpt b/Zend/tests/bug63055.phpt index 0901e5b..16c50b5 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"; ?> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php