mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
As suggested on php-dev, array_fill() is probably a better name for this
function.
This commit is contained in:
parent
991e30668f
commit
72fc6bc4b1
4 changed files with 5 additions and 5 deletions
2
NEWS
2
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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue