History log of /PHP-8.1/ext/standard/array.c (Results 926 – 950 of 1077)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# ddc039d0 10-Jan-2002 Andrei Zmievski

Fix the recursive counting, it was broken for associative or non-sequential
arrays. Also update NEWS file.

# aee57030 09-Jan-2002 Derick Rethans

- Fix bug introduced in earlier patch

# cef0a461 29-Dec-2001 Derick Rethans

- Added extra parameter to count() that recursively counts elements in an
array and added is_array_multidimensional(). (patch by Vlad Bosinceanu
<glipy@fx.ro>)

# 211d712c 29-Dec-2001 Andi Gutmans

@ Fix bug in krsort() where an extra character was being compared (Andi)
- Fix bug in krsort() where an extra character was being compared (Andi)

Revision tags: php-4.1.1
# 2c9f5d8a 22-Dec-2001 Zak Greant

Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,
uasort, uksort and usort.

Corrected prototype comments for all.

Converted to use zend_parse_parameters,

Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,
uasort, uksort and usort.

Corrected prototype comments for all.

Converted to use zend_parse_parameters, except for the u.?sort functions.

Changed return values for failure from implicit NULL to explicit FALSE in
asort(), krsort(), and ksort().

Changed pval to zval in the u.?sort functions.

Added test to help ensure that fixes to code do not change function
behavior. Tests are quite large (~237k) but compress down to ~16k.
Please let me know if this is a problem!

show more ...

Revision tags: PRE_FUNC_RETURNS_OBJECT_PATCH, ChangeLog
# 38933514 11-Dec-2001 Sebastian Bergmann

Update headers.

Revision tags: php-4.1.0, php-4.1.0RC5, php-4.1.0RC4, php-4.1.0RC3, php-4.1.0RC2
# 78e4644f 11-Nov-2001 Derick Rethans

- Renaming key_exists to array_key_exists
@- Renamed key_exists tp array_key_exists. (Derick)
#- Not sure if this belongs in NEWS, but it was already in a released
# version. And yes, I

- Renaming key_exists to array_key_exists
@- Renamed key_exists tp array_key_exists. (Derick)
#- Not sure if this belongs in NEWS, but it was already in a released
# version. And yes, I know I'm breaking BC here, but as it was not documented
# yet, that doesn't matter.

show more ...

# 2890b57e 27-Oct-2001 Andrei Zmievski

@- Added array_chunk() function that splits an array into chunks of specified
@ size. (Andrei)

Revision tags: POST_PARAMETER_PARSING_API
# 72fc6bc4 23-Oct-2001 Rasmus Lerdorf

As suggested on php-dev, array_fill() is probably a better name for this
function.

# d98c96fc 22-Oct-2001 Rasmus Lerdorf

Use references instead of making a copy each time in array_init(). About
twice as fast for a high number of elements. 2.80 seconds for the copy
of 1,000,000 elements and 1.39s for the refer

Use references instead of making a copy each time in array_init(). About
twice as fast for a high number of elements. 2.80 seconds for the copy
of 1,000,000 elements and 1.39s for the reference version. Need to chunk
it every 62k or so because refcount is a short.

show more ...

# 4d60dbb9 21-Oct-2001 Rasmus Lerdorf

Oops, leftover crud

# 798ec793 21-Oct-2001 Rasmus Lerdorf

Motivated by bug #13607 I wrote up a simple array_init() function that
lets you quickly create an array and initialize each element to a certain
value.
@ Add array_init() function (Rasmus)

Revision tags: PRE_PARAMETER_PARSING_API, php-4.1.0RC1
# 78b881f3 07-Oct-2001 Jeroen van Wolffelaar

Fix naming inside php_search_array, comp_func is not a compare function.

# 62feefdd 05-Oct-2001 Jeroen van Wolffelaar

Fix array_search and in_array. Now binary safe, and faster (returns when
found, and doesn't duplicate the key each time, but only when necessary)

Patch also by Edin Kadribasic

# 89ea50a5 05-Oct-2001 Jeroen van Wolffelaar

Fix bug 13567 and don't depend on a boolean int-value to be either 1 or 0

# e78b6154 05-Oct-2001 Edin Kadribasic

Added array_change_key_case() function that returns array with
with all string keys lowercased or uppercased
@- Added array_change_key_case() function that returns array with
@ with all

Added array_change_key_case() function that returns array with
with all string keys lowercased or uppercased
@- Added array_change_key_case() function that returns array with
@ with all string keys lowercased or uppercased (EdinK)

show more ...

Revision tags: php4, php-4.0.7RC3, POST_SUBST_Z_MACROS, PRE_SUBST_Z_MACROS
# bcb426a2 17-Sep-2001 Sterling Hughes

Merge in qsort changes

# 97fea093 16-Sep-2001 Sterling Hughes

Make rand thread safe when ZTS is defined.

# 78747bd2 09-Sep-2001 Derick Rethans

- Don't wrap lines... this is annoying while coding.

# ff2bc83c 09-Sep-2001 Sterling Hughes

remove ARG_COUNT(ht)

# Is there any reason that the set_compare_func call is passed SORT_STRING
# instead of SORT_REGULAR??

Revision tags: php-4.0.7RC2
# 42b5521a 05-Sep-2001 foobar

revert bad commit.

# 9b888641 04-Sep-2001 Daniel Beulshausen

fix zts+win32 build

# 1ecd31b6 03-Sep-2001 Andi Gutmans

- Fix thread safe mode.
- Please don't use Java style function braces.

# 0cb6a319 03-Sep-2001 Jeroen van Wolffelaar

Fix array_rand and array_suffle to use php_rand correctly

# b0300e26 03-Sep-2001 Jeroen van Wolffelaar

Fix prototype

1...<<31323334353637383940>>...44