#
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 ...
|
#
d62d50b8 |
| 08-May-2022 |
Ilija Tovilo |
Add C API for getting backed enum case by value Closes GH-8518
|
#
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 ...
|
#
74924ada |
| 03-May-2022 |
vajexal <72415539+vajexal@users.noreply.github.com> |
Fix get_function_or_method_name when included file is scoped (#8467)
|
#
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 ...
|
#
86379b67 |
| 09-Nov-2021 |
Nikita Popov |
Warn if return type on internal __toString() is missing
|
#
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 ...
|
#
471102ed |
| 21-Oct-2021 |
Bob Weinand |
Add ZEND_API for weakmap functionality via zend_weakrefs_hash_add/del Closes GH-7600.
|
#
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 ...
|
#
4483ecf5 |
| 02-Sep-2021 |
Máté Kocsis |
Properly escape the default value of string properties and enum cases
|
#
32d48212 |
| 31-Aug-2021 |
Nikita Popov |
Support generating internal enum decl from stubs
|
#
eaac77f4 |
| 31-Aug-2021 |
Go Kudo |
Fix nested namespaced typed property in gen_stub.php (#7418) Property escape namespaced class name in property types.
|
#
a374230c |
| 22-Jul-2021 |
Nikita Popov |
Add support for internal enums This adds support for internal enums with the same basic approach as userland enums. Enum values are stored as CONSTANT_AST and objects created during
Add support for internal enums This adds support for internal enums with the same basic approach as userland enums. Enum values are stored as CONSTANT_AST and objects created during constant updating at runtime. This means that we need to use mutable_data for internal enums. This just adds basic support and APIs, it does not include the stubs integration from #7212. Closes GH-7302.
show more ...
|
#
fc56de11 |
| 22-Jul-2021 |
Máté Kocsis |
Add support for generating readonly properties via stubs (#7297)
|
#
b3828836 |
| 20-Jul-2021 |
Máté Kocsis |
Indent stubs inside global namespace blocks (#7261)
|
#
fcd18757 |
| 10-May-2021 |
Máté Kocsis |
Add reproducer for possible issue with object return type inheritance (#6961) Fix early inheritance Co-authored-by: Joe Watkins <krakjoe@php.net>
|
#
803779e8 |
| 16-Feb-2021 |
Máté Kocsis |
Add support for generating properties with union type of multiple classes Closes GH-6701
|
#
45fa7596 |
| 09-Feb-2021 |
Máté Kocsis |
Add missing classes to stubs
|
#
99b08ac2 |
| 08-Feb-2021 |
Máté Kocsis |
Implicitly enable function entry generation when class entry generation is enabled Closes GH-6675
|
#
5e06dad4 |
| 06-Feb-2021 |
Tyson Andre |
Properly render 2+ namespaces functions in build/gen_stub.php Affects ZEND_NS_FE Add test cases of the global function Backported to php 8.0 from GH-6664
|
#
b4c6d5f7 |
| 03-Feb-2021 |
Tyson Andre |
Properly render 2+ namespaces functions in build/gen_stub.php Affects both INIT_NS_CLASS_ENTRY and ZEND_NS_FE Add test cases of the global function and namespaced values Cl
Properly render 2+ namespaces functions in build/gen_stub.php Affects both INIT_NS_CLASS_ENTRY and ZEND_NS_FE Add test cases of the global function and namespaced values Closes GH-6664
show more ...
|
#
1954e597 |
| 26-Jan-2021 |
Máté Kocsis |
Add support for generating class entries from stubs Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
#
c96d884d |
| 07-Oct-2020 |
Nikita Popov |
Avoid namespaced class symbol clashes in gen_stub Add the namespace prefix (using underscores) to both the arginfo name and the method declaration name.
|
#
9c710b1d |
| 07-Oct-2020 |
Nikita Popov |
Support "static" type in gen_stub
|
#
dfa6d1c2 |
| 02-Oct-2020 |
Nikita Popov |
Support specifying linkage for generate-function-entries The linkage can be specified as the argument to the @generate-function-entries tag. Test this on zend_test.
|