]> granicus.if.org Git - php/commitdiff
(PHP array_map) Away with it.
authorAndrei Zmievski <andrei@php.net>
Tue, 26 Oct 1999 19:57:10 +0000 (19:57 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 26 Oct 1999 19:57:10 +0000 (19:57 +0000)
ext/standard/basic_functions.c
ext/standard/basic_functions.h

index ec48b3e97b0af6f801b752113968b14b2b055b98..4e3d481e20715050a5cbe8cc5972c04ae82cfbfe 100644 (file)
@@ -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
index a01b35aa90e10c31f8325cbdb50ea5f3c65ce91a..3b266a99e0e759a42adbb294f95dc5cb16680037 100644 (file)
@@ -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);