From 8d2dd7901c4432fbddc5bf4e8bf3c4962cdb2f0d Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 17 Jun 2005 10:53:15 +0000 Subject: [PATCH] add news entry and test for bug #33382 --- NEWS | 2 ++ ext/standard/tests/array/bug33382.phpt | 27 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 ext/standard/tests/array/bug33382.phpt diff --git a/NEWS b/NEWS index 2b867a02d6..04bdc58a38 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ PHP NEWS shutdown). (Wez) - Fixed PECL bug #3714 (beginTransaction doesn't work if you're in auto-commit mode). (Wez) +- Fixed bug #33382 (array_reverse() fails after *sort()), + introduced by zend_hash_sort() optimizations in HEAD. (Tony) - Fixed bug #33340 (CLI Crash when calling php:function from XSLT). (Rob) - Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8). (Dmitry) - Fixed bug #33312 (ReflectionParameter methods do not work correctly). diff --git a/ext/standard/tests/array/bug33382.phpt b/ext/standard/tests/array/bug33382.phpt new file mode 100644 index 0000000000..407b5846fe --- /dev/null +++ b/ext/standard/tests/array/bug33382.phpt @@ -0,0 +1,27 @@ +--TEST-- +bug #33382 ( array_reverse() fails after *sort() ) +--FILE-- + +--EXPECT-- +array(5) { + [0]=> + int(5) + [1]=> + int(4) + [2]=> + int(3) + [3]=> + int(2) + [4]=> + int(1) +} +Done -- 2.40.0