@@ -1245,7 +1245,7 @@ static void reflection_property_factory_str(zend_class_entry *ce, const char *na
1245
1245
}
1246
1246
1247
1247
/* {{{ reflection_class_constant_factory */
1248
- static void reflection_class_constant_factory (zend_class_entry * ce , zend_string * name_str , zend_class_constant * constant , zval * object )
1248
+ static void reflection_class_constant_factory (zend_string * name_str , zend_class_constant * constant , zval * object )
1249
1249
{
1250
1250
reflection_object * intern ;
1251
1251
@@ -1257,7 +1257,7 @@ static void reflection_class_constant_factory(zend_class_entry *ce, zend_string
1257
1257
intern -> ignore_visibility = 0 ;
1258
1258
1259
1259
ZVAL_STR_COPY (reflection_prop_name (object ), name_str );
1260
- ZVAL_STR_COPY (reflection_prop_class (object ), ce -> name );
1260
+ ZVAL_STR_COPY (reflection_prop_class (object ), constant -> ce -> name );
1261
1261
}
1262
1262
/* }}} */
1263
1263
@@ -3473,7 +3473,7 @@ ZEND_METHOD(reflection_class_constant, __construct)
3473
3473
intern -> ce = constant -> ce ;
3474
3474
intern -> ignore_visibility = 0 ;
3475
3475
ZVAL_STR_COPY (reflection_prop_name (object ), constname );
3476
- ZVAL_STR_COPY (reflection_prop_class (object ), ce -> name );
3476
+ ZVAL_STR_COPY (reflection_prop_class (object ), constant -> ce -> name );
3477
3477
}
3478
3478
/* }}} */
3479
3479
@@ -4346,7 +4346,7 @@ ZEND_METHOD(reflection_class, getReflectionConstants)
4346
4346
array_init (return_value );
4347
4347
ZEND_HASH_FOREACH_STR_KEY_PTR (& ce -> constants_table , name , constant ) {
4348
4348
zval class_const ;
4349
- reflection_class_constant_factory (ce , name , constant , & class_const );
4349
+ reflection_class_constant_factory (name , constant , & class_const );
4350
4350
zend_hash_next_index_insert (Z_ARRVAL_P (return_value ), & class_const );
4351
4351
} ZEND_HASH_FOREACH_END ();
4352
4352
}
@@ -4395,7 +4395,7 @@ ZEND_METHOD(reflection_class, getReflectionConstant)
4395
4395
if ((constant = zend_hash_find_ptr (& ce -> constants_table , name )) == NULL ) {
4396
4396
RETURN_FALSE ;
4397
4397
}
4398
- reflection_class_constant_factory (ce , name , constant , return_value );
4398
+ reflection_class_constant_factory (name , constant , return_value );
4399
4399
}
4400
4400
/* }}} */
4401
4401
0 commit comments