@@ -1273,7 +1273,7 @@ static void reflection_attribute_factory(zval *object, HashTable *attributes, ze
12731273}
12741274/* }}} */
12751275
1276- static int read_attributes (zval * ret , HashTable * attributes , zend_class_entry * scope ,
1276+ static zend_result read_attributes (zval * ret , HashTable * attributes , zend_class_entry * scope ,
12771277 uint32_t offset , uint32_t target , zend_string * name , zend_class_entry * base , zend_string * filename ) /* {{{ */
12781278{
12791279 ZEND_ASSERT (attributes != NULL );
@@ -1653,7 +1653,7 @@ static void reflection_enum_case_factory(zend_class_entry *ce, zend_string *name
16531653 ZVAL_STR_COPY (reflection_prop_class (object ), constant -> ce -> name );
16541654}
16551655
1656- static int get_parameter_default (zval * result , parameter_reference * param ) {
1656+ static zend_result get_parameter_default (zval * result , parameter_reference * param ) {
16571657 if (param -> fptr -> type == ZEND_INTERNAL_FUNCTION ) {
16581658 if (param -> fptr -> common .fn_flags & ZEND_ACC_USER_ARG_INFO ) {
16591659 /* We don't have a way to determine the default value for this case right now. */
@@ -4523,16 +4523,16 @@ ZEND_METHOD(ReflectionClass, getMethod)
45234523static bool _addmethod (zend_function * mptr , zend_class_entry * ce , HashTable * ht , zend_long filter )
45244524{
45254525 if ((mptr -> common .fn_flags & ZEND_ACC_PRIVATE ) && mptr -> common .scope != ce ) {
4526- return 0 ;
4526+ return false ;
45274527 }
45284528
45294529 if (mptr -> common .fn_flags & filter ) {
45304530 zval method ;
45314531 reflection_method_factory (ce , mptr , NULL , & method );
45324532 zend_hash_next_index_insert_new (ht , & method );
4533- return 1 ;
4533+ return true ;
45344534 }
4535- return 0 ;
4535+ return false ;
45364536}
45374537/* }}} */
45384538
@@ -7100,7 +7100,7 @@ ZEND_METHOD(ReflectionReference, __construct)
71007100
71017101static bool is_ignorable_reference (HashTable * ht , zval * ref ) {
71027102 if (Z_REFCOUNT_P (ref ) != 1 ) {
7103- return 0 ;
7103+ return false ;
71047104 }
71057105
71067106 /* Directly self-referential arrays are treated as proper references
0 commit comments