tony2001 Fri Jun 17 06:53:16 2005 EDT Added files: /php-src/ext/standard/tests/array bug33382.phpt
Modified files: /php-src NEWS Log: add news entry and test for bug #33382 http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1925&r2=1.1926&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1925 php-src/NEWS:1.1926 --- php-src/NEWS:1.1925 Fri Jun 17 06:50:45 2005 +++ php-src/NEWS Fri Jun 17 06:53:13 2005 @@ -11,6 +11,8 @@ 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). http://cvs.php.net/co.php/php-src/ext/standard/tests/array/bug33382.phpt?r=1.1&p=1 Index: php-src/ext/standard/tests/array/bug33382.phpt +++ php-src/ext/standard/tests/array/bug33382.phpt --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 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php