Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #24897 (inconsistent behaviour or shuffle() & array_multisort()) --FILE-- <?p..
Decoded Output download
--TEST--
Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
--FILE--
<?php
$a = array(1 => 2);
shuffle($a);
var_dump($a);
$a = array(1 => 2);
array_multisort($a);
var_dump($a);
?>
--EXPECT--
array(1) {
[0]=>
int(2)
}
array(1) {
[0]=>
int(2)
}
Did this file decode correctly?
Original Code
--TEST--
Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
--FILE--
<?php
$a = array(1 => 2);
shuffle($a);
var_dump($a);
$a = array(1 => 2);
array_multisort($a);
var_dump($a);
?>
--EXPECT--
array(1) {
[0]=>
int(2)
}
array(1) {
[0]=>
int(2)
}
Function Calls
shuffle | 1 |
Stats
MD5 | ba1caa6f43ae02f67d01463ecc512895 |
Eval Count | 0 |
Decode Time | 121 ms |