From: Andrei Zmievski Date: Tue, 26 Oct 1999 19:57:10 +0000 (+0000) Subject: (PHP array_map) Away with it. X-Git-Tag: php-4.0b3_RC2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21ce8b7c64389021107c3621b2e88f2b48ba19e2;p=php (PHP array_map) Away with it. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ec48b3e97b..4e3d481e20 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3139,41 +3139,6 @@ PHP_FUNCTION(array_reverse) /* }}} */ -/* {{{ proto array array_map(array input, string value_exp [, string key_exp] */ -PHP_FUNCTION(array_map) -{ - zval** input; - zval** value_exp; - zval** key_exp = NULL; - zval** entry; - int argc; - - argc = ARG_COUNT(ht); - - if (argc < 2 || argc > 3 || getParametersEx(ht, &input, &value_exp, &key_exp) == FAILURE) { - WRONG_PARAM_COUNT; - } - - if ((*input)->type != IS_ARRAY) { - php_error(E_WARNING, "First argument to %s() should be an array", - get_active_function_name()); - return; - } - - convert_to_string_ex(value_exp); - if (key_exp) - convert_to_string_ex(key_exp); - - zend_hash_internal_pointer_reset((*input)->value.ht); - while(zend_hash_get_current_data((*input)->value.ht, (void **)&entry) == SUCCESS) { - - - zend_hash_move_forward((*input)->value.ht); - } -} - -/* }}} */ - /* * Local variables: * tab-width: 4 diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h index a01b35aa90..3b266a99e0 100644 --- a/ext/standard/basic_functions.h +++ b/ext/standard/basic_functions.h @@ -60,7 +60,6 @@ PHP_FUNCTION(usort); PHP_FUNCTION(uasort); PHP_FUNCTION(uksort); PHP_FUNCTION(array_walk); -PHP_FUNCTION(array_map); PHP_FUNCTION(count); PHP_FUNCTION(flush); PHP_FUNCTION(end);