ID: 23935 Updated by: [EMAIL PROTECTED] Reported By: dave at codewhore dot org -Status: Open +Status: Closed Bug Type: Arrays related Operating System: Linux 2.4 PHP Version: 5CVS-2003-05-31 (dev) Assigned To: sterling New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. fixed in cvs, thanks. Previous Comments: ------------------------------------------------------------------------ [2003-05-31 23:12:32] dave at codewhore dot org Hi: The following script produces different output with PHP 5 HEAD than it does with the PHP 4.3 stable branch: <?php $f[1] = 1; var_dump(array_key_exists('1', $f)); ?> With PHP 4.3 stable, I get: bool(true) With PHP 5 HEAD, I get: bool(false) It appears that PHP 5 HEAD is missing the call to HANDLE_NUMERIC() in zend_hash_exists (Zend/zend_hash.c). The ZE2 changelog shows that it was moved: move HANDLE_NUMERIC() from the hash table implementation upstream to the places that actually need to use it. But I'm unable to figure out where the equivalent functionality was added back. Am I missing something? Thanks in advance, - Dave ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23935&edit=1
