From 90bd54c46e0195f65a1a49ac0c01f139915a2dd3 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 19 Oct 2012 11:22:56 +0800 Subject: [PATCH] preg indenpent test script for #63055 --- Zend/tests/bug63055.phpt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Zend/tests/bug63055.phpt diff --git a/Zend/tests/bug63055.phpt b/Zend/tests/bug63055.phpt new file mode 100644 index 0000000000..711385a3ce --- /dev/null +++ b/Zend/tests/bug63055.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #63055 (Segfault in zend_gc with SF2 testsuite) +--FILE-- + "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; + +str_replace("foo", "bar", "foobar", $matches); +echo "okey"; +?> +--EXPECTF-- +okey -- 2.50.1