History log of /php-src/ext/standard/array.c (Results 126 – 150 of 1122)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 8d2a9d88 07-Nov-2019 Nikita Popov

Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
Fixed bug #78759


# 5fa6dcd9 07-Nov-2019 Nikita Popov

Fixed bug #78759

Handle INDIRECT values in array.

Revision tags: php-7.3.12RC1, php-7.2.25RC1
# 14bdb0cf 04-Nov-2019 Máté Kocsis

Fix consistency issues with array accesses warnings/exceptions

* Change a number of "resource used as offset" notices to warnings,
which were previously missed.
* Throw the "res

Fix consistency issues with array accesses warnings/exceptions

* Change a number of "resource used as offset" notices to warnings,
which were previously missed.
* Throw the "resource used as offset" warning for isset() as well.
* Make array_key_exists() behavior with regard to different key
types consistent with isset() and normal array accesses. All key
types now use the usual coercions and array/object keys throw
TypeError.

Closes GH-4887.

show more ...

# c46b2ed6 04-Nov-2019 Nikita Popov

Remove support for array_key_exists() with objects

# 96f361dc 29-Oct-2019 Tyson Andre

Update documentation/comment for GH-4860

Fix folding for the new helper method.

Clarify comment in UPGRADING:
The performance on associative arrays would also improve,
as lo

Update documentation/comment for GH-4860

Fix folding for the new helper method.

Clarify comment in UPGRADING:
The performance on associative arrays would also improve,
as long as no offsets were unset (no gaps).
Packed arrays can have gaps.

Closes GH-4873.
[ci skip]

show more ...

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()

12345678910>>...45