From 5c9870c37c2bcd53c10b68d2d28b973c2fb37532 Mon Sep 17 00:00:00 2001 From: Marlies Heijkoop Date: Fri, 2 Dec 2016 17:26:38 +0100 Subject: [PATCH] Add test for issue #94 ((PHP7 segmentation fault with references)) --- tests/issue094.phpt | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tests/issue094.phpt diff --git a/tests/issue094.phpt b/tests/issue094.phpt new file mode 100644 index 0000000..7e57500 --- /dev/null +++ b/tests/issue094.phpt @@ -0,0 +1,54 @@ +--TEST-- +Issue #94 (PHP7 segmentation fault with references) +--SKIPIF-- + Array + ( + [verylongid] => 1 + ) + + [10] => Array + ( + [verylongid] => 10 + ) + + [16] => Array + ( + [verylongid] => 16 + ) + + [0] => Array + ( + [children] => Array + ( + [16] => Array + ( + [verylongid] => 16 + ) + + [10] => Array + ( + [verylongid] => 10 + ) + + [1] => Array + ( + [verylongid] => 1 + ) + + ) + + ) + +)