#
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 |
Revision tags: php-7.4.1, php-7.2.26, php-7.3.13, php-7.4.1RC1 |
|
#
366713d2 |
| 07-Dec-2019 |
Tyson Andre |
Speed up array_intersect/array_diff/array_filter Use zend_hash_update instead of zend_hash_add. These are taking a subset of keys from an array with unique keys, so the result s
Speed up array_intersect/array_diff/array_filter Use zend_hash_update instead of zend_hash_add. These are taking a subset of keys from an array with unique keys, so the result should also have unique keys. (this is already done for array_map()) Also, speed up array_intersect and array_diff slightly by using ZEND_HASH_FOREACH macros. This way, it doesn't need to load the same buckets and array counts from memory every time (compiler previously couldn't infer they won't change) ```php <?php // $n=10000 now takes 0.095 seconds instead of 0.102 function test_bench(int $n) { $values = range(0,1000); $other = range(0,1000); unset($other[500]); unset($values[400]); $total = 0; for ($i = 0; $i < $n; $i++) { $total += count(array_intersect_key($values, $other)); } return $total; } ```
show more ...
|
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25 |
|
#
f03d311f |
| 19-Nov-2019 |
George Peter Banyard |
Capitalize first character of error message. |
Revision tags: php-7.3.12 |
|
#
5fbd49f9 |
| 18-Nov-2019 |
George Peter Banyard |
Convert Errors to ValueErrors Closes GH-4930 |
Revision tags: php-7.4.0RC6 |
|
#
0027ad48 |
| 07-Nov-2019 |
Nikita Popov |
Merge branch 'PHP-7.4' * PHP-7.4: Fixed bug #78759
|
#
aed4f6e8 |
| 07-Nov-2019 |
Nikita Popov |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fixed bug #78759
|
#
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 |