php-src/ext/zend_test
Máté Kocsis 5992a29724
Improve BC support of arginfo files fenerated by gen_stub.php (#13705)
- Declared compatibility expectations of stub files are now enforced by a ZEND_STATIC_ASSERT call at the top of arginfo files
- Property registration for PHP 7 is fixed: function zend_declare_property_ex() is used again instead of zend_declare_typed_property(). This has been a regression since I added support for exposing doc comments.
- As a defensive measure, deep cloning is performed before newer features (type declarations, attributes etc.) are discarded before generating legacy arginfo files. Until now, some of the objects were forgotten to be taken care of. These omissions may have resulted in some weird bugs in theory (but probably they didn't have much impact in practice).
- PHP version related conditions inside *non-legacy arginfo files* used to possibly check for the 70000 version iD until now if compatibility with PHP 7.0 was declared in a stub. This was not 100% correct, since non-legacy arginfo files are only for PHP 8.0+. Now, I made sure that at least PHP version ID 80000 is used in the preprocessor conditions. The solution was a bit tricky though...
2024-03-18 22:06:17 +01:00
..
tests Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00
config.m4 Fix zend_test extension name (#13321) 2024-02-04 19:27:58 +01:00
config.w32 Merge branch 'PHP-8.2' into PHP-8.3 2023-09-05 10:36:16 +01:00
fiber.c Change getThis() into ZEND_THIS where possible (#13641) 2024-03-08 22:19:06 +01:00
fiber.h Flexible fiber bailout handling (#7163) 2021-06-18 11:01:10 -05:00
fiber.stub.php Add support for validation of missing class synopses (#9472) 2022-09-05 14:21:15 +02:00
fiber_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
iterators.c general signatures discrepencies fixes (#13122) 2024-01-10 22:19:23 +00:00
iterators.h adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators.stub.php adds failing test case for #12060 2023-09-05 10:23:22 +01:00
iterators_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
object_handlers.c Zend: Add tests for offsets and containers (#12723) 2024-01-25 15:06:59 +00:00
object_handlers.h ext/zend_test: Move object handler test objects to their own file (#11852) 2023-08-02 18:52:55 +01:00
object_handlers.stub.php Zend: Add tests for offsets and containers (#12723) 2024-01-25 15:06:59 +00:00
object_handlers_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
observer.c Merge branch 'PHP-8.2' 2023-03-13 12:39:40 +01:00
observer.h Fix memory_leak in zend_test 2022-07-30 15:57:08 +00:00
php_test.h Merge branch 'PHP-8.1' into PHP-8.2 2023-11-25 00:59:26 +01:00
test.c Merge branch 'PHP-8.3' 2024-03-14 18:59:57 +00:00
test.stub.php Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00
test_arginfo.h Improve BC support of arginfo files fenerated by gen_stub.php (#13705) 2024-03-18 22:06:17 +01:00