-
Notifications
You must be signed in to change notification settings - Fork 8k
Expose zend_reflection_property_set_raw_value, zend_reflection_property_set_raw_value_without_lazy_initialization #21763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…ty_set_raw_value_without_lazy_initialization
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,18 @@ extern PHPAPI zend_class_entry *reflection_lazy_object_ptr; | |
|
|
||
| PHPAPI void zend_reflection_class_factory(zend_class_entry *ce, zval *object); | ||
|
|
||
| /* Sets the value of a property, bypassing a set hook if defined. */ | ||
| PHPAPI void zend_reflection_property_set_raw_value( | ||
| const zend_property_info *prop, zend_string *unmangled_name, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we add a bit more documentation? I assume
What is the What does the Internally reflection might pass the unmangled name and the class entry separately because they are already available and for performance, but that shouldn't be required from external callers
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Internally we use
I agree that the The proposed API is low level, but it still abstracts away a lot of complexity. |
||
| void *cache_slot[3], const zend_class_entry *scope, | ||
| zend_object *object, zval *value); | ||
|
|
||
| /* Same as zend_reflection_property_set_raw_value(), but skips lazy object initialization. */ | ||
| PHPAPI void zend_reflection_property_set_raw_value_without_lazy_initialization( | ||
| const zend_property_info *prop, zend_string *unmangled_name, | ||
| void *cache_slot[3], const zend_class_entry *scope, | ||
| zend_object *object, zval *value); | ||
|
|
||
| END_EXTERN_C() | ||
|
|
||
| #endif /* PHP_REFLECTION_H */ | ||
Uh oh!
There was an error while loading. Please reload this page.