Revision tags: php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1 |
|
#
efc8f0eb |
| 17-Jun-2022 |
Arnaud Le Blanc |
Deprecate zend_atol() / add zend_ini_parse_quantity() (#7951) Add zend_ini_parse_quantity() and deprecate zend_atol(), zend_atoi() zend_atol() and zend_atoi() don't just do number p
Deprecate zend_atol() / add zend_ini_parse_quantity() (#7951) Add zend_ini_parse_quantity() and deprecate zend_atol(), zend_atoi() zend_atol() and zend_atoi() don't just do number parsing. They also check for a 'K', 'M', or 'G' at the end of the string, and multiply the parsed value out accordingly. Unfortunately, they ignore any other non-numerics between the numeric component and the last character in the string. This means that numbers such as the following are both valid and non-intuitive in their final output. * "123KMG" is interpreted as "123G" -> 132070244352 * "123G " is interpreted as "123 " -> 123 * "123GB" is interpreted as "123B" -> 123 * "123 I like tacos." is also interpreted as "123." -> 123 Currently, in php-src these functions are used only for parsing ini values. In this change we deprecate zend_atol(), zend_atoi(), and introduce a new function with the same behavior, but with the ability to report invalid inputs to the caller. The function's name also makes the behavior less unexpected: zend_ini_parse_quantity(). Co-authored-by: Sara Golemon <pollita@php.net>
show more ...
|
#
b1223ee3 |
| 16-Jun-2022 |
twosee |
Use get_active_function_or_method_name() for zend_forbid_dynamic_call() (#8762) A slight imperfection in https://github.com/php/php-src/pull/7443. As a zend_API, we should also consider
Use get_active_function_or_method_name() for zend_forbid_dynamic_call() (#8762) A slight imperfection in https://github.com/php/php-src/pull/7443. As a zend_API, we should also consider other extensions that may call it in methods. This change will not break the behavior of php-src.
show more ...
|
Revision tags: php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30 |
|
#
7c28196a |
| 01-Jun-2022 |
Sara Golemon |
Partial revert of 6d96f39a68bb |
#
2b6bfb0d |
| 01-Jun-2022 |
Máté Kocsis |
Merge branch 'PHP-8.1' * PHP-8.1: Get rid of invalid assertion and cleanup zend_call_method
|
#
6d96f39a |
| 01-Jun-2022 |
Máté Kocsis |
Get rid of invalid assertion and cleanup zend_call_method Closes GH-8672 |
#
6c0a1db4 |
| 01-Jun-2022 |
Sara Golemon |
Merge branch 'PHP-8.1' * PHP-8.1: Verify internal types before abandoning call frame
|
#
01d84545 |
| 31-May-2022 |
Sara Golemon |
Verify internal types before abandoning call frame An internal caller executing a builtin method with a static return type will lose context if we drop our frame before performing th
Verify internal types before abandoning call frame An internal caller executing a builtin method with a static return type will lose context if we drop our frame before performing the validation.
show more ...
|
Revision tags: php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19 |
|
#
d62d50b8 |
| 08-May-2022 |
Ilija Tovilo |
Add C API for getting backed enum case by value Closes GH-8518 |
#
df2414a2 |
| 28-May-2022 |
Ilija Tovilo |
Merge branch 'PHP-8.1' * PHP-8.1: Fix Enum::from/tryFrom memory leak in JIT for internal enums
|
#
93fc88e8 |
| 25-May-2022 |
Ilija Tovilo |
Fix Enum::from/tryFrom memory leak in JIT for internal enums when passing an int to a string enum. Previously, the int was coerced to a string. The JIT skips parameter clean up when unne
Fix Enum::from/tryFrom memory leak in JIT for internal enums when passing an int to a string enum. Previously, the int was coerced to a string. The JIT skips parameter clean up when unnecessary. In this particular case, passing int to from(int|string) normally doesn't cause a coercion so no dtor for the $value zval is generated. To circumvent this we avoid coersion by explicitly allowing ints and converting them to strings ourselves. Then we can free it appropriately. See GH-8518 Closes GH-8633
show more ...
|
#
da857c94 |
| 03-May-2022 |
Máté Kocsis |
Merge branch 'PHP-8.1' * PHP-8.1: Fix get_function_or_method_name when included file is scoped
|
#
510061b5 |
| 03-May-2022 |
Máté Kocsis |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Fix get_function_or_method_name when included file is scoped
|
#
74924ada |
| 03-May-2022 |
vajexal <72415539+vajexal@users.noreply.github.com> |
Fix get_function_or_method_name when included file is scoped (#8467) |
Revision tags: php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17 |
|
#
e439736f |
| 07-Mar-2022 |
Bob Weinand |
Merge branch 'PHP-8.1'
|
#
67b372e2 |
| 07-Mar-2022 |
Bob Weinand |
Merge branch 'PHP-8.0' into PHP-8.1
|
#
185a1468 |
| 07-Mar-2022 |
Bob Weinand |
Merge branch 'PHP-8.1'
|
Revision tags: php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28 |
|
#
070012d6 |
| 09-Feb-2022 |
Tim Düsterhus |
Add tests for function parameter attributes to ext/zend_test These tests verify the correct workings of the previous fixes: - Parameter attributes for native functions should not le
Add tests for function parameter attributes to ext/zend_test These tests verify the correct workings of the previous fixes: - Parameter attributes for native functions should not leak memory. - Parameter attributes for native functions should behave as expected.
show more ...
|
Revision tags: php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6 |
|
#
86379b67 |
| 09-Nov-2021 |
Nikita Popov |
Warn if return type on internal __toString() is missing |
#
85acad56 |
| 09-Nov-2021 |
Nikita Popov |
Merge branch 'PHP-8.1' * PHP-8.1: Add string return type to __toString() of internal classes
|
#
277caa1d |
| 09-Nov-2021 |
Nikita Popov |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Add string return type to __toString() of internal classes
|
#
a551b083 |
| 09-Nov-2021 |
Nikita Popov |
Add string return type to __toString() of internal classes Same as with userland classes, automatically add a string return type to __toString() methods in internal classes, so the signa
Add string return type to __toString() of internal classes Same as with userland classes, automatically add a string return type to __toString() methods in internal classes, so the signature is compatible with Stringable.
show more ...
|
Revision tags: php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32 |
|
#
d6bf375f |
| 21-Oct-2021 |
Bob Weinand |
Merge branch 'PHP-8.1'
|
#
51a9c68e |
| 21-Oct-2021 |
Bob Weinand |
Merge branch 'PHP-8.0' into PHP-8.1
|
#
471102ed |
| 21-Oct-2021 |
Bob Weinand |
Add ZEND_API for weakmap functionality via zend_weakrefs_hash_add/del Closes GH-7600. |
Revision tags: php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1, php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31, php-8.1.0RC2, php-7.4.24RC1, php-8.0.11RC1 |
|
#
5bda4cd2 |
| 04-Sep-2021 |
codinghuang |
Support specifying start position in compile_string Add additional zend_compile_position argument, which can be either AT_SHEBANG, AT_OPEN_TAG or AFTER_OPEN_TAG. The previous behavior
Support specifying start position in compile_string Add additional zend_compile_position argument, which can be either AT_SHEBANG, AT_OPEN_TAG or AFTER_OPEN_TAG. The previous behavior corresponds to AFTER_OPEN_TAG. Closes GH-7462.
show more ...
|