@@ -6013,9 +6013,9 @@ ZEND_METHOD(ReflectionProperty, setValue)
60136013 * 'scope' on 'object'. The result may be different from 'ref->prop' when the
60146014 * property is overridden on 'object' and was not private in 'scope'.
60156015 * The effective prop may add hooks or change flags. */
6016- static const zend_property_info * reflection_property_get_effective_prop (
6017- const zend_property_info * prop , zend_string * unmangled_name ,
6018- const zend_class_entry * scope , zend_object * object ) {
6016+ static zend_property_info * reflection_property_get_effective_prop (
6017+ zend_property_info * prop , zend_string * unmangled_name ,
6018+ zend_class_entry * scope , zend_object * object ) {
60196019 if (scope != object -> ce && !(prop && (prop -> flags & ZEND_ACC_PRIVATE ))) {
60206020 prop = zend_hash_find_ptr (& object -> ce -> properties_info , unmangled_name );
60216021 }
@@ -6050,7 +6050,7 @@ ZEND_METHOD(ReflectionProperty, getRawValue)
60506050 }
60516051 }
60526052
6053- const zend_property_info * prop = reflection_property_get_effective_prop (ref -> prop ,
6053+ zend_property_info * prop = reflection_property_get_effective_prop (ref -> prop ,
60546054 ref -> unmangled_name , intern -> ce , Z_OBJ_P (object ));
60556055
60566056 if (UNEXPECTED (prop && (prop -> flags & ZEND_ACC_STATIC ))) {
@@ -6081,9 +6081,9 @@ ZEND_METHOD(ReflectionProperty, getRawValue)
60816081 }
60826082}
60836083
6084- static void zend_reflection_property_set_raw_value_ex (const zend_property_info * prop ,
6084+ static void zend_reflection_property_set_raw_value_ex (zend_property_info * prop ,
60856085 zend_string * unmangled_name , void * cache_slot [3 ],
6086- const zend_class_entry * scope , zend_object * object , zval * value )
6086+ zend_class_entry * scope , zend_object * object , zval * value )
60876087{
60886088 ZEND_ASSERT (!prop || !(prop -> flags & ZEND_ACC_STATIC ));
60896089
@@ -6098,9 +6098,9 @@ static void zend_reflection_property_set_raw_value_ex(const zend_property_info *
60986098 }
60996099}
61006100
6101- PHPAPI void zend_reflection_property_set_raw_value (const zend_property_info * prop ,
6101+ PHPAPI void zend_reflection_property_set_raw_value (zend_property_info * prop ,
61026102 zend_string * unmangled_name , void * cache_slot [3 ],
6103- const zend_class_entry * scope , zend_object * object , zval * value )
6103+ zend_class_entry * scope , zend_object * object , zval * value )
61046104{
61056105 prop = reflection_property_get_effective_prop (prop ,
61066106 unmangled_name , scope , object );
@@ -6133,8 +6133,8 @@ ZEND_METHOD(ReflectionProperty, setRawValue)
61336133}
61346134
61356135static zend_result reflection_property_check_lazy_compatible (
6136- const zend_property_info * prop , zend_string * unmangled_name ,
6137- const zend_class_entry * scope , zend_object * object , const char * method )
6136+ zend_property_info * prop , zend_string * unmangled_name ,
6137+ zend_class_entry * scope , zend_object * object , const char * method )
61386138{
61396139 if (!prop ) {
61406140 zend_throw_exception_ex (reflection_exception_ptr , 0 ,
@@ -6175,8 +6175,8 @@ static zend_result reflection_property_check_lazy_compatible(
61756175}
61766176
61776177PHPAPI void zend_reflection_property_set_raw_value_without_lazy_initialization (
6178- const zend_property_info * prop , zend_string * unmangled_name ,
6179- void * cache_slot [3 ], const zend_class_entry * scope ,
6178+ zend_property_info * prop , zend_string * unmangled_name ,
6179+ void * cache_slot [3 ], zend_class_entry * scope ,
61806180 zend_object * object , zval * value )
61816181{
61826182 while (zend_object_is_lazy_proxy (object )
@@ -6724,7 +6724,7 @@ ZEND_METHOD(ReflectionProperty, isReadable)
67246724
67256725 GET_REFLECTION_OBJECT_PTR (ref );
67266726
6727- const zend_property_info * prop = ref -> prop ;
6727+ zend_property_info * prop = ref -> prop ;
67286728 if (prop && obj ) {
67296729 if (prop -> flags & ZEND_ACC_STATIC ) {
67306730 zend_throw_exception (reflection_exception_ptr , "null is expected as object argument for static properties" , 0 );
@@ -6831,7 +6831,7 @@ ZEND_METHOD(ReflectionProperty, isWritable)
68316831
68326832 GET_REFLECTION_OBJECT_PTR (ref );
68336833
6834- const zend_property_info * prop = ref -> prop ;
6834+ zend_property_info * prop = ref -> prop ;
68356835 if (prop && obj ) {
68366836 if (prop -> flags & ZEND_ACC_STATIC ) {
68376837 zend_throw_exception (reflection_exception_ptr , "null is expected as object argument for static properties" , 0 );
0 commit comments