From 1d6ac15b3d0f590ab620c4d25edb8b1304e093d3 Mon Sep 17 00:00:00 2001 From: Robert Nicholson Date: Tue, 29 Jan 2008 08:50:43 +0000 Subject: [PATCH] - MFH compact_variation1.phpt - fix for bug #29044 --- .../tests/array/compact_variation1.phpt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 ext/standard/tests/array/compact_variation1.phpt diff --git a/ext/standard/tests/array/compact_variation1.phpt b/ext/standard/tests/array/compact_variation1.phpt new file mode 100644 index 0000000000..ea48132857 --- /dev/null +++ b/ext/standard/tests/array/compact_variation1.phpt @@ -0,0 +1,54 @@ +--TEST-- +Test compact() function : usage variations - arrays containing references. +--FILE-- + +--EXPECTF-- +*** Testing compact() : usage variations - arrays containg references *** + +Warning: compact(): recursion detected in %s on line %d +array(1) { + ["a"]=> + int(1) +} + +Warning: compact(): recursion detected in %s on line %d + +Warning: compact(): recursion detected in %s on line %d + +Warning: compact(): recursion detected in %s on line %d + +Warning: compact(): recursion detected in %s on line %d +array(2) { + ["a"]=> + int(1) + ["b"]=> + int(2) +} +array(1) { + ["c"]=> + int(3) +} +Done -- 2.50.1