From: cryo28 at rbcmail dot ru
Operating system: Windows 2000
PHP version: 5.0.1
PHP Bug Type: Arrays related
Bug description: array_reverse doesn't work
Description:
------------
array_reverse() doesn't work at any way
Reproduce code:
---------------
$a = array(1,2,3);
var_dump($a);
array_reverse($a);
var_dump($a);
Expected result:
----------------
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
[0]=>
int(3)
[1]=>
int(2)
[2]=>
int(1)
}
Actual result:
--------------
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
--
Edit bug report at http://bugs.php.net/?id=30929&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30929&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=30929&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=30929&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30929&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30929&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30929&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30929&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30929&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30929&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30929&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=30929&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=30929&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30929&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30929&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30929&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30929&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30929&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30929&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30929&r=mysqlcfg