From: [EMAIL PROTECTED] Operating system: RedHat Linux PHP version: 4.3.0 PHP Bug Type: Arrays related Bug description: array_key_exists warns for large numeric keys
Try this script: <?php $a = array(); $a[2163195907] = "hi"; echo array_key_exists(2163195907,$a); ?> PHP generates a warning (The first argument should be either a string or an integer). If I try this with smaller integers, the code works fine. If I convert the integer to a string (using strval), it also works fine. Norman Elton -- Edit bug report at http://bugs.php.net/?id=21954&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21954&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21954&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21954&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21954&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21954&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21954&r=support Expected behavior: http://bugs.php.net/fix.php?id=21954&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21954&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21954&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21954&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21954&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21954&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21954&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21954&r=gnused