]> granicus.if.org Git - php/commitdiff
add news entry and test for bug #33382
authorAntony Dovgal <tony2001@php.net>
Fri, 17 Jun 2005 10:53:15 +0000 (10:53 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 17 Jun 2005 10:53:15 +0000 (10:53 +0000)
NEWS
ext/standard/tests/array/bug33382.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 2b867a02d601ff52117758cb785cab9fa51472ca..04bdc58a385ca49993985a3b22bc22c857e82931 100644 (file)
--- 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 (file)
index 0000000..407b584
--- /dev/null
@@ -0,0 +1,27 @@
+--TEST--
+bug #33382 ( array_reverse() fails after *sort() )
+--FILE--
+<?php
+
+$array = array(1,2,3,4,5);
+
+sort($array);
+
+var_dump(array_reverse($array));
+
+echo "Done\n";
+?>
+--EXPECT--     
+array(5) {
+  [0]=>
+  int(5)
+  [1]=>
+  int(4)
+  [2]=>
+  int(3)
+  [3]=>
+  int(2)
+  [4]=>
+  int(1)
+}
+Done