cvs: /php4/ext/standard basic_functions.c basic_functions.h
| From: | Andrei Zmievski | Date: | Tue, 26 Oct 1999 19:57:41 +0000 |
| Subject: | cvs: /php4/ext/standard basic_functions.c basic_functions.h | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-5711@lists.php.net to get a copy of this message | ||
andrei Tue Oct 26 15:57:41 1999 EDT
Modified files:
/php4/ext/standard basic_functions.c basic_functions.h
Log:
(PHP array_map) Away with it.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.107 php4/ext/standard/basic_functions.c:1.108
--- php4/ext/standard/basic_functions.c:1.107 Sun Oct 24 14:15:42 1999
+++ php4/ext/standard/basic_functions.c Tue Oct 26 15:57:10 1999
@@ -3139,41 +3139,6 @@
/* }}} */
-/* {{{ 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: php4/ext/standard/basic_functions.h
diff -u php4/ext/standard/basic_functions.h:1.24 php4/ext/standard/basic_functions.h:1.25
--- php4/ext/standard/basic_functions.h:1.24 Sat Oct 16 06:14:46 1999
+++ php4/ext/standard/basic_functions.h Tue Oct 26 15:57:10 1999
@@ -29,7 +29,7 @@
*/
-/* $Id: basic_functions.h,v 1.24 1999/10/16 10:14:46 andi Exp $ */
+/* $Id: basic_functions.h,v 1.25 1999/10/26 19:57:10 andrei Exp $ */
#ifndef _BASIC_FUNCTIONS_H
#define _BASIC_FUNCTIONS_H
@@ -60,7 +60,6 @@
PHP_FUNCTION(uasort);
PHP_FUNCTION(uksort);
PHP_FUNCTION(array_walk);
-PHP_FUNCTION(array_map);
PHP_FUNCTION(count);
PHP_FUNCTION(flush);
PHP_FUNCTION(end);