cvs: php4 / NEWS /ext/standard array.c basic_functions.c php_array.h

From: Date: Tue, 23 Oct 2001 18:46:36 +0000
Subject: cvs: php4 / NEWS /ext/standard array.c basic_functions.c php_array.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7965@lists.php.net to get a copy of this message
rasmus Tue Oct 23 14:46:36 2001 EDT Modified files: /php4 NEWS /php4/ext/standard array.c basic_functions.c php_array.h Log: As suggested on php-dev, array_fill() is probably a better name for this function. Index: php4/NEWS diff -u php4/NEWS:1.792 php4/NEWS:1.793 --- php4/NEWS:1.792 Mon Oct 22 20:10:28 2001 +++ php4/NEWS Tue Oct 23 14:46:34 2001 @@ -2,7 +2,7 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 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: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.144 php4/ext/standard/array.c:1.145 --- php4/ext/standard/array.c:1.144 Mon Oct 22 16:49:27 2001 +++ php4/ext/standard/array.c Tue Oct 23 14:46:35 2001 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.144 2001/10/22 20:49:27 rasmus Exp $ */ +/* $Id: array.c,v 1.145 2001/10/23 18:46:35 rasmus Exp $ */ #include "php.h" #include "php_ini.h" @@ -1325,9 +1325,9 @@ } /* }}} */ -/* {{{ 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: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.411 php4/ext/standard/basic_functions.c:1.412 --- php4/ext/standard/basic_functions.c:1.411 Tue Oct 23 07:14:51 2001 +++ php4/ext/standard/basic_functions.c Tue Oct 23 14:46:35 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.411 2001/10/23 11:14:51 sniper Exp $ */ +/* $Id: basic_functions.c,v 1.412 2001/10/23 18:46:35 rasmus Exp $ */ #include "php.h" #include "php_main.h" @@ -755,7 +755,7 @@ 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: php4/ext/standard/php_array.h diff -u php4/ext/standard/php_array.h:1.30 php4/ext/standard/php_array.h:1.31 --- php4/ext/standard/php_array.h:1.30 Sun Oct 21 03:42:35 2001 +++ php4/ext/standard/php_array.h Tue Oct 23 14:46:35 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_array.h,v 1.30 2001/10/21 07:42:35 rasmus Exp $ */ +/* $Id: php_array.h,v 1.31 2001/10/23 18:46:35 rasmus Exp $ */ #ifndef PHP_ARRAY_H #define PHP_ARRAY_H @@ -52,7 +52,7 @@ 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);

« previous php.cvs (#7965) next »