|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-18 21:46 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2016-11-18 21:46 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ When using array_fetch with an array of keys, if one of the keys is the string representation of a number then that key cannot be accessed in the returned array due to PHP's auto conversion of array keys that are string based representations of numbers to numbers. Reproduction of this issue does not require Apache or any other special configuration of PHP other then the installation and enabling of the APC extension. Reproduce code: --------------- <?php apc_store ("123", "value1"); apc_store ("test", "value2"); $results = apc_fetch (array ("123","test")); var_dump (isset($results["123"])); Expected result: ---------------- That "bool(true)" is returned by the var_dump and that the element is accessible in the array via all array access methods supported by PHP. Actual result: -------------- The actual result is that "bool(false)" is returned by the var_dump and this element in the array cannot be accessed via the array subscript method.