From: Márcio Almada Date: Thu, 1 Sep 2016 07:52:54 +0000 (-0400) Subject: add extra test to protected behavior of compact and array string key order X-Git-Tag: php-7.2.0alpha1~1383^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cba560e67fbd44abf6648dd01ec0f231123993cd;p=php add extra test to protected behavior of compact and array string key order --- diff --git a/ext/standard/tests/array/compact_order.phpt b/ext/standard/tests/array/compact_order.phpt new file mode 100644 index 0000000000..bf6051cc49 --- /dev/null +++ b/ext/standard/tests/array/compact_order.phpt @@ -0,0 +1,25 @@ +--TEST-- +compact() and hashmap order +--FILE-- + +--EXPECT-- +array(2) { + ["foo"]=> + NULL + ["bar"]=> + NULL +} +array(2) { + ["bar"]=> + NULL + ["foo"]=> + NULL +}