History log of /php-src/ext/standard/array.c (Results 126 – 150 of 1117)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: php-7.4.0RC5
# e7ff590d 25-Oct-2019 Tyson Andre

Optimize array_slice for packed arrays with large offsets

If the offset is 100000, and there are no gaps in the packed/unpacked array,
then advance the pointer once by 100000,
instea

Optimize array_slice for packed arrays with large offsets

If the offset is 100000, and there are no gaps in the packed/unpacked array,
then advance the pointer once by 100000,
instead of looping and skipping 100000 times.

Add a new test of array_slice handling unset offsets.

Closes GH-4860.

show more ...

Revision tags: php-7.1.33, php-7.2.24, php-7.3.11
# e7335eb4 21-Oct-2019 Colin O'Dell

Allow array_splice() length to be null

# 8ccd58ba 21-Oct-2019 Colin O'Dell

Add Z_PARAM_LONG_OR_NULL macro

Revision tags: php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1
# b02b8129 07-Oct-2019 Dmitry Stogov

Comparison cleanup:

- introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval)
- remove compare_objects() object handler, and keep only compare() handler

# 5f80eb78 07-Oct-2019 Nikita Popov

Fix required number of arguments in stubs

* get_parent_class() argument is optional
* Mark array_filter() $callback as optional
* The $base of gmp_strval() is optional
* DateTime

Fix required number of arguments in stubs

* get_parent_class() argument is optional
* Mark array_filter() $callback as optional
* The $base of gmp_strval() is optional
* DateTime constructor also accepts zero arguments
* hash_update_file() stream context is optional
* xmlwriter_write_dtd_entity() $isparam argument is optional

show more ...

# 647b1c7f 07-Oct-2019 Nikita Popov

Remove most uses of ZEND_PARSE_PARAMETERS_END_EX()

As ZPP now throws, it makes no sense to specify an explicit return
value.

Revision tags: php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9
# d5e9ef8f 20-Aug-2019 George Peter Banyard

Promote warnings to error in array_flip()

Closes GH-4576.

# 1ca4ab09 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_push()

This is in line with the engine change from
https://wiki.php.net/rfc/engine_warnings.

# 5d6e923d 24-Sep-2019 Gabriel Caruso

Remove mention of PHP major version in Copyright headers

Closes GH-4732.

# f8161712 31-Aug-2019 George Peter Banyard

Indicate entry is skipped in error message

# 2cafaab8 17-Sep-2019 Nikita Popov

Merge branch 'PHP-7.4'


# d266ba4f 17-Sep-2019 Nikita Popov

Check for exception after calling count_values()

To avoid a duplicate error if count_values() throws.

# 62751b0d 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_walk(_recursive)()

# 81277a10 21-Aug-2019 George Peter Banyard

Promote warnings to errors in compact()

# 20edea5a 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_merge(_recursive)() and array_replace()

# 70e604ee 21-Aug-2019 George Peter Banyard

Promote warnings to errors in extract()

# 9fc3d5da 20-Aug-2019 George Peter Banyard

Promote warnings to errors in max()

# b91a881b 20-Aug-2019 George Peter Banyard

Promote warnings to errors in min()

# a47f170a 26-Aug-2019 Nikita Popov

Assert that symbol table is available in compact()

I believe NULL here is no longer possible due to the dynamic call
check. A similar assumption already exists in the extract()
imple

Assert that symbol table is available in compact()

I believe NULL here is no longer possible due to the dynamic call
check. A similar assumption already exists in the extract()
implementation.

show more ...

# c1c8538f 20-Aug-2019 George Peter Banyard

Promote warnings to errors in array_rand()

# d5f42d68 26-Aug-2019 Theodore Brown

Convert remaining array function arginfo to PHP stubs

# c1fcf2d6 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_pad()

# 7dcbcd4c 20-Aug-2019 George Peter Banyard

Promote warnings to errors in array_column()

# 7d4e3dc3 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_combine()

# eaf66df5 20-Aug-2019 George Peter Banyard

Promote warnings to errors in array_multisort()

12345678910>>...45