Skip to content

Expose zend_reflection_property_set_raw_value, zend_reflection_property_set_raw_value_without_lazy_initialization#21763

Open
arnaud-lb wants to merge 1 commit intophp:masterfrom
arnaud-lb:expose-refl-set-raw-value
Open

Expose zend_reflection_property_set_raw_value, zend_reflection_property_set_raw_value_without_lazy_initialization#21763
arnaud-lb wants to merge 1 commit intophp:masterfrom
arnaud-lb:expose-refl-set-raw-value

Conversation

@arnaud-lb
Copy link
Copy Markdown
Member

@arnaud-lb arnaud-lb commented Apr 15, 2026

This exposes the functionality of ReflectionProperty::setRawValue() and ReflectionProperty::setRawValueWithoutLazyInitialiation() to C extensions.

Test failure unrelated.

…ty_set_raw_value_without_lazy_initialization
@arnaud-lb arnaud-lb changed the title [wip] Expose zend_reflection_property_set_raw_value, zend_reflection_property_set_raw_value_without_lazy_initialization Expose zend_reflection_property_set_raw_value, zend_reflection_property_set_raw_value_without_lazy_initialization Apr 15, 2026
@arnaud-lb arnaud-lb marked this pull request as ready for review April 15, 2026 10:18
nicolas-grekas added a commit to symfony/php-ext-deepclone that referenced this pull request Apr 15, 2026
…lable

PHP 8.6 exposes zend_reflection_property_set_raw_value{,_without_lazy_initialization}
as PHPAPI (php/php-src#21763), moving the lazy-prop
bookkeeping into ext/reflection. Use the PHPAPI direct on 8.6+ and keep the
userland ReflectionProperty round-trip as a fallback for 8.4 / 8.5.

Depends on php/php-src#21763 landing; holding here until the patch is merged
and the target PHP version is known.
nicolas-grekas added a commit to symfony/php-ext-deepclone that referenced this pull request Apr 15, 2026
…lable

PHP 8.6 exposes zend_reflection_property_set_raw_value{,_without_lazy_initialization}
as PHPAPI (php/php-src#21763), moving the lazy-prop
bookkeeping into ext/reflection. Use the PHPAPI direct on 8.6+ and keep the
userland ReflectionProperty round-trip as a fallback for 8.4 / 8.5.

Depends on php/php-src#21763 landing; holding here until the patch is merged
and the target PHP version is known.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant