From: Ilia Alshanetsky Date: Wed, 24 May 2006 23:14:08 +0000 (+0000) Subject: Fixed bug #37563 (array_key_exists performance is poor for &$array). X-Git-Tag: php-5.2.0RC1~469 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53988d8cf55468411da16fc6e90dc793c9ee314d;p=php Fixed bug #37563 (array_key_exists performance is poor for &$array). --- diff --git a/NEWS b/NEWS index 26a3c6e2a7..fb41f7ad3d 100644 --- a/NEWS +++ b/NEWS @@ -46,6 +46,7 @@ PHP NEWS - Added RFC2397 (data: stream) support. (Marcus) - Fixed bug #37565 (Using reflection::export with simplexml causing a crash). (Marcus) +- Fixed bug #37563 (array_key_exists performance is poor for &$array). (Ilia) - Fixed bug #37514 (strtotime doesn't assume year correctly). (Derick) - Fixed bug #37510 (session_regenerate_id changes session_id() even on failure). (Hannes) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index fbc35c71eb..134b34c926 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -815,7 +815,7 @@ zend_function_entry basic_functions[] = { PHP_FE(array_map, NULL) PHP_FE(array_chunk, NULL) PHP_FE(array_combine, NULL) - PHP_FE(array_key_exists, NULL) + PHP_FE(array_key_exists, all_args_prefer_ref) /* aliases from array.c */ PHP_FALIAS(pos, current, first_arg_force_ref)