[PHP-CVS] cvs: php4 /ext/standard array.c

2001-04-02 Thread Andrei Zmievski
andrei Mon Apr 2 06:20:17 2001 EDT Modified files: /php4/ext/standard array.c Log: Use correct string length. Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.106 php4/ext/standard/array.c:1.107 --- php4/ext/standard/array.c:1.106

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-03-19 Thread Andrei Zmievski
andrei Mon Mar 19 13:20:03 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: @- Added array_map() function that applies a callback to the elements @ of given arrays and returns the result. It can also be used with a @

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-16 Thread Andrei Zmievski
andrei Fri Mar 16 11:29:23 2001 EDT Modified files: /php4/ext/standard array.c Log: @- Fixed all relevant array functions to avoid moving the internal array @ pointer during operations. (Andrei) Index: php4/ext/standard/array.c diff -u

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-16 Thread Frank M. Kromann
fmk Fri Mar 16 11:48:40 2001 EDT Modified files: /php4/ext/standard array.c Log: Fixing build on Win32 by adding missing BLS_FETCH(); Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.102 php4/ext/standard/array.c:1.103 ---

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-16 Thread Andrei Zmievski
andrei Fri Mar 16 11:51:08 2001 EDT Modified files: /php4/ext/standard array.c Log: All user callbacks should be to EG(function_table). Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.103 php4/ext/standard/array.c:1.104 ---

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-03-16 Thread Andrei Zmievski
andrei Fri Mar 16 12:46:35 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: @- Added array_filter(), which allows filtering of array elements via @ the specified callback. (Andrei) Index: php4/ext/standard/array.c

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-12 Thread Stanislav Malyshev
stasMon Mar 12 02:14:00 2001 EDT Modified files: /php4/ext/standard array.c Log: Prevent memory leak Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.100 php4/ext/standard/array.c:1.101 --- php4/ext/standard/array.c:1.100 Mon

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-11 Thread Andrei Zmievski
andrei Sun Mar 11 19:10:15 2001 EDT Modified files: /php4/ext/standard array.c Log: This will have to do until the docs come along. Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.98 php4/ext/standard/array.c:1.99 ---

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-03-11 Thread Stanislav Malyshev
stasMon Mar 12 00:07:00 2001 EDT Modified files: /php4/ext/standard array.c Log: Use hash position with array_flip Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.99 php4/ext/standard/array.c:1.100 ---

[PHP-CVS] cvs: php4 /ext/standard array.c

2001-02-21 Thread Andrei Zmievski
andrei Wed Feb 21 09:22:27 2001 EDT Modified files: /php4/ext/standard array.c Log: Fix memory leak. Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.94 php4/ext/standard/array.c:1.95 --- php4/ext/standard/array.c:1.94 Tue Feb 20

[PHP-CVS] cvs: php4 /ext/standard array.c crypt.c php_rand.h rand.c

2001-02-21 Thread James Moore
jmoore Wed Feb 21 16:24:19 2001 EDT Modified files: /php4/ext/standard array.c crypt.c php_rand.h rand.c Log: Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 and rand. Index: php4/ext/standard/array.c diff -u

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: + if (behavior == 0) { + compare_func = is_equal_function; + } else { + /* Lets not return a key unless the values are exact */ + compare_func = is_identical_function; + } Why not? Why should it be

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
andrei Tue Feb 20 06:23:03 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: Rename to array_search(). Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.92 php4/ext/standard/array.c:1.93 ---

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene
Well, My thoughts on this one were that if you are actually grabbing a key, people are more likely to trust that the returned key does in fact reference the value that was searched. Perhaps defaulting to strict is not a good idea, but to me it seemed logical, and I figured that if anyone else in

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: Well, My thoughts on this one were that if you are actually grabbing a key, people are more likely to trust that the returned key does in fact reference the value that was searched. Perhaps defaulting to strict is not a good idea, but to me it

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-19 Thread Jason Greene
jason Mon Feb 19 21:36:40 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: Moved the core of in_array into the function php_search_array, which is called by in_array and search_array (new) @ Added search_array which