History log of /php-src/ext/standard/array.c (Results 101 – 125 of 1127)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 15846ff1 17-Jun-2020 Nikita Popov

Add ZVAL_OBJ_COPY macro

For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.

# 83a77015 08-Jun-2020 twosee

Add helper APIs for maybe-interned string creation

Add ZVAL_CHAR/RETVAL_CHAR/RETURN_CHAR as a shortcut for using
ZVAL_INTERNED_STRING and ZSTR_CHAR.

Add zend_string_init_fast()

Add helper APIs for maybe-interned string creation

Add ZVAL_CHAR/RETVAL_CHAR/RETURN_CHAR as a shortcut for using
ZVAL_INTERNED_STRING and ZSTR_CHAR.

Add zend_string_init_fast() as a helper for the empty string /
one char interned string / zend_string_init() pattern.

Also add corresponding ZVAL_STRINGL_FAST etc macros.

Closes GH-5684.

show more ...

# 7d6a0ba8 07-Jun-2020 twosee

Fix expression warnings and break warnings

Close GH-5675.

# 957a0f6a 04-Jun-2020 Matthias Dötsch

in_array() avoid internal property access as we have the arrlen already

Closes GH-5662

# 50a9f511 13-May-2020 Nikita Popov

Allow null callback to array_filter()

With same behavior as not passing it.

# 091d53c1 29-Apr-2020 Nikita Popov

Use standard key behavior in array_column()

array_column() reimplements array key handling in a way that does
not match standard array key behavior in PHP. Avoid this by making
use o

Use standard key behavior in array_column()

array_column() reimplements array key handling in a way that does
not match standard array key behavior in PHP. Avoid this by making
use of the standard API.

Of course, there is a minor backwards compatibilty break here,
e.g. people could be relying on objects getting cast to string
instead of throwing.

Closes GH-5487.

show more ...

# 34f727e6 27-Apr-2020 George Peter Banyard

Use ZPP check for string|int|null arguments in array_column()

# dad51108 29-Apr-2020 Nikita Popov

Remove dead code

As pointed out by Girgias, index is always non-NULL here.

# 6111d64c 16-Apr-2020 Máté Kocsis

Improve a last couple of argument error messages

Closes GH-5404

# 1f48feeb 13-Apr-2020 Máté Kocsis

Improve some TypeError and ValueError messages

Closes GH-5377

# 50765075 01-Apr-2020 Máté Kocsis

Improve some ValueError messages

Closes GH-5340

# 36935e42 30-Mar-2020 Máté Kocsis

Improve undefined variable error messages

Closes GH-5312

Revision tags: php-7.4.4RC1, php-7.3.16RC1
# bb6f3740 24-Feb-2020 Máté Kocsis

Improve argument error messages in ext/standard

Closes GH-5198

# 33ef3d64 04-Mar-2020 Nikita Popov

Use separate typedef for bucket comparison function

Avoid performing the same casting dance inside each sort compare
function.

Revision tags: php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27
# 0719035f 22-Jan-2020 George Peter Banyard

Add ValueError for invalid mode in count()

Closes GH-5106

Revision tags: php-7.4.2
# fcdb610a 21-Jan-2020 Nikita Popov

Fix double free in array_reduce

return_value needs to be explicitly nulled out in the failure case.

Revision tags: php-7.3.14
# 0fbdc5a3 20-Jan-2020 Nikita Popov

Remove unnecessary result variable

Instead directly use return_value. Hopefully this also works
around the "may be uninitialized" warning...

# 68112224 20-Jan-2020 Nikita Popov

Eliminate uses of ZVAL_ZVAL and friends

Instead add RETURN_COPY(_VALUE) macros will the expected behavior.

RETURN_ZVAL doesn't make any sense since PHP 7, but has stuck
around,

Eliminate uses of ZVAL_ZVAL and friends

Instead add RETURN_COPY(_VALUE) macros will the expected behavior.

RETURN_ZVAL doesn't make any sense since PHP 7, but has stuck
around, probably because the alternative was to write directly to
the return_value variable.

show more ...

# d1764ca3 15-Jan-2020 Máté Kocsis

Make error messages more consistent by fixing capitalization

Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.

Revision tags: php-7.3.14RC1, php-7.4.2RC1
# aadd3aae 03-Jan-2020 Máté Kocsis

Use RETURN_THROWS() in various places

# 01a50778 02-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_throw_exception() in most of the extensions

# 349a2864 01-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_throw_error()

# 9099dbd9 01-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_type_error()

# 12ce73a5 31-Dec-2019 Máté Kocsis

Use RETURN_THROWS() after zend_value_error()

# 31cf9a7e 29-Dec-2019 Máté Kocsis

Use RETURN_THROWS() when an exception is thrown

Closes GH-5036

12345678910>>...46