Bug #52733 [NEW]:
| From: | phpstars at gmail dot com | Date: | Mon, 30 Aug 2010 00:50:55 +0000 |
| Subject: | Bug #52733 [NEW]: | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-153905@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 7
PHP version: 5.3.3
Package: Output Control
Bug Type: Bug
Bug description:
Description:
------------
I found this problem , use the latest version of XAMPP
<?PHP
$array1 = array (4,3,1,5,2);
$array2 = array (7,9,6,10,8);
array_multisort($array1,$array2);
print_r ($array1); // Result : Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4
[4] => 5 )
echo '<BR>';
print_r ($array2); // Result : Array ( [0] => 6 [1] => 8 [2] => 9 [3] => 7
[4] => 10 )
// Note : Number 7 in the $array2 sorted after number 9
echo '<BR><HR><BR>';
$array1 = array (4,3,1,5,2);
$array2 = array (7,9,6,10,8);
array_multisort($array1);
array_multisort($array2);
print_r ($array1); // Result : Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4
[4] => 5 )
echo '<BR>';
print_r ($array2); // Result : Array ( [0] => 6 [1] => 7 [2] => 8 [3] => 9
[4] => 10 )
// Note : But when array_multisort($array2); separately was used, the
output was correct
?>
Test script:
---------------
Expected result:
----------------
Actual result:
--------------
--
Edit bug report at http://bugs.php.net/bug.php?id=52733&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52733&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52733&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52733&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52733&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52733&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52733&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52733&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52733&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52733&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52733&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52733&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52733&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52733&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52733&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52733&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52733&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52733&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52733&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52733&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52733&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52733&r=mysqlcfg