File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -5601,28 +5601,14 @@ ZEND_METHOD(reflection_property, getDeclaringClass)
5601
5601
{
5602
5602
reflection_object * intern ;
5603
5603
property_reference * ref ;
5604
- zend_class_entry * tmp_ce , * ce ;
5605
- zend_property_info * tmp_info ;
5604
+ zend_class_entry * ce ;
5606
5605
5607
5606
if (zend_parse_parameters_none () == FAILURE ) {
5608
5607
RETURN_THROWS ();
5609
5608
}
5610
5609
GET_REFLECTION_OBJECT_PTR (ref );
5611
5610
5612
- ce = tmp_ce = intern -> ce ;
5613
- while (tmp_ce && (tmp_info = zend_hash_find_ptr (& tmp_ce -> properties_info , ref -> unmangled_name )) != NULL ) {
5614
- if (tmp_info -> flags & ZEND_ACC_PRIVATE ) {
5615
- /* it's a private property, so it can't be inherited */
5616
- break ;
5617
- }
5618
- ce = tmp_ce ;
5619
- if (tmp_ce == tmp_info -> ce ) {
5620
- /* declared in this class, done */
5621
- break ;
5622
- }
5623
- tmp_ce = tmp_ce -> parent ;
5624
- }
5625
-
5611
+ ce = ref -> prop ? ref -> prop -> ce : intern -> ce ;
5626
5612
zend_reflection_class_factory (ce , return_value );
5627
5613
}
5628
5614
/* }}} */
You can’t perform that action at this time.
0 commit comments