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 #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index ..
Decoded Output download
--TEST--
Bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
--FILE--
<?php
$arr[PHP_INT_MAX] = 1;
try {
$arr[] = 2;
} catch (Error $e) {
echo $e->getMessage(), "
";
}
var_dump($arr);
?>
--EXPECTF--
Cannot add element to the array as the next element is already occupied
array(1) {
[%d]=>
int(1)
}
Did this file decode correctly?
Original Code
--TEST--
Bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
--FILE--
<?php
$arr[PHP_INT_MAX] = 1;
try {
$arr[] = 2;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
var_dump($arr);
?>
--EXPECTF--
Cannot add element to the array as the next element is already occupied
array(1) {
[%d]=>
int(1)
}
Function Calls
| None |
Stats
| MD5 | 97c3808c85141df6403c5da39d3f5f4b |
| Eval Count | 0 |
| Decode Time | 93 ms |