]> granicus.if.org Git - php/commitdiff
As suggested on php-dev, array_fill() is probably a better name for this
authorRasmus Lerdorf <rasmus@php.net>
Tue, 23 Oct 2001 18:46:35 +0000 (18:46 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 23 Oct 2001 18:46:35 +0000 (18:46 +0000)
function.

NEWS
ext/standard/array.c
ext/standard/basic_functions.c
ext/standard/php_array.h

diff --git a/NEWS b/NEWS
index 235d154de988b50152b2b11e4ef3200c5ee614ce..1cb5b84d5ec56305b9578068f5dfc66019c966f4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@ PHP 4.0                                                                    NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 200?, Version 4.2.0-dev
 - Added session_cache_expire() function. (patch from anuradha@gnu.org)
-- Add array_init() function (Rasmus)
+- Add array_fill() function (Rasmus)
 - Hide Authorization header from phpinfo() output in safe_mode (Rasmus)
 - Re-instated safe-mode realm mangling (Rasmus)
 - Fixed a bug in preg_replace() that would change the type of the replacement
index bcc9370f73470d4651b152b5b5bd267b68ae5e46..2807129fa0d2f5f71dc39dd90a189053d9e8d455 100644 (file)
@@ -1325,9 +1325,9 @@ PHP_FUNCTION(compact)
 }
 /* }}} */
 
-/* {{{ proto array array_init(int start_key, int num, mixed val)
+/* {{{ proto array array_fill(int start_key, int num, mixed val)
    Create an array containing num elements starting with index start_key each initialized to val */
-PHP_FUNCTION(array_init)
+PHP_FUNCTION(array_fill)
 {
        zval **start_key, **num, **val, *newval;
        long i;
index efbbbf860ea4245e9b987309b9a8358190177508..8ee340237441841570d484b3f7f6b6ed9b010e1a 100644 (file)
@@ -755,7 +755,7 @@ function_entry basic_functions[] = {
        PHP_FE(array_search,                                                                                                    NULL)
        PHP_FE(extract,                                                                                                                 NULL)
        PHP_FE(compact,                                                                                                                 NULL)
-       PHP_FE(array_init,                                                                                                              NULL)
+       PHP_FE(array_fill,                                                                                                              NULL)
        PHP_FE(range,                                                                                                                   NULL)
        PHP_FE(array_multisort,                                                                                                 NULL)
        PHP_FE(array_push,                              first_arg_force_ref)
index 7598f2aaa526a4e3de41d7e6ad1905112377136d..880ce2c74db8cc32697d90b44a75ae72d7e97756 100644 (file)
@@ -52,7 +52,7 @@ PHP_FUNCTION(in_array);
 PHP_FUNCTION(array_search);
 PHP_FUNCTION(extract);
 PHP_FUNCTION(compact);
-PHP_FUNCTION(array_init);
+PHP_FUNCTION(array_fill);
 PHP_FUNCTION(range);
 PHP_FUNCTION(shuffle);
 PHP_FUNCTION(array_multisort);