@@ -1549,8 +1549,8 @@ ZEND_API void object_properties_init_ex(zend_object *object, HashTable *properti
1549
1549
ZEND_HASH_MAP_FOREACH_STR_KEY_VAL (properties , key , prop ) {
1550
1550
property_info = zend_get_property_info (object -> ce , key , 1 );
1551
1551
if (property_info != ZEND_WRONG_PROPERTY_INFO &&
1552
- property_info &&
1553
- (property_info -> flags & ZEND_ACC_STATIC ) == 0 ) {
1552
+ property_info &&
1553
+ (property_info -> flags & ZEND_ACC_STATIC ) == 0 ) {
1554
1554
zval * slot = OBJ_PROP (object , property_info -> offset );
1555
1555
1556
1556
if (UNEXPECTED (ZEND_TYPE_IS_SET (property_info -> type ))) {
@@ -2275,7 +2275,7 @@ ZEND_API void zend_collect_module_handlers(void) /* {{{ */
2275
2275
}
2276
2276
} ZEND_HASH_FOREACH_END ();
2277
2277
module_request_startup_handlers = (zend_module_entry * * )malloc (
2278
- sizeof (zend_module_entry * ) *
2278
+ sizeof (zend_module_entry * ) *
2279
2279
(startup_count + 1 +
2280
2280
shutdown_count + 1 +
2281
2281
post_deactivate_count + 1 ));
@@ -2301,8 +2301,8 @@ ZEND_API void zend_collect_module_handlers(void) /* {{{ */
2301
2301
/* Collect internal classes with static members */
2302
2302
ZEND_HASH_MAP_FOREACH_PTR (CG (class_table ), ce ) {
2303
2303
if (ce -> type == ZEND_INTERNAL_CLASS &&
2304
- ce -> default_static_members_count > 0 ) {
2305
- class_count ++ ;
2304
+ ce -> default_static_members_count > 0 ) {
2305
+ class_count ++ ;
2306
2306
}
2307
2307
} ZEND_HASH_FOREACH_END ();
2308
2308
@@ -2314,8 +2314,8 @@ ZEND_API void zend_collect_module_handlers(void) /* {{{ */
2314
2314
if (class_count ) {
2315
2315
ZEND_HASH_MAP_FOREACH_PTR (CG (class_table ), ce ) {
2316
2316
if (ce -> type == ZEND_INTERNAL_CLASS &&
2317
- ce -> default_static_members_count > 0 ) {
2318
- class_cleanup_handlers [-- class_count ] = ce ;
2317
+ ce -> default_static_members_count > 0 ) {
2318
+ class_cleanup_handlers [-- class_count ] = ce ;
2319
2319
}
2320
2320
} ZEND_HASH_FOREACH_END ();
2321
2321
}
@@ -2791,7 +2791,7 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
2791
2791
zend_internal_arg_info * arg_info = & reg_function -> internal_function .arg_info [i ];
2792
2792
ZEND_ASSERT (arg_info -> name && "Parameter must have a name" );
2793
2793
if (ZEND_TYPE_IS_SET (arg_info -> type )) {
2794
- reg_function -> common .fn_flags |= ZEND_ACC_HAS_TYPE_HINTS ;
2794
+ reg_function -> common .fn_flags |= ZEND_ACC_HAS_TYPE_HINTS ;
2795
2795
}
2796
2796
#if ZEND_DEBUG
2797
2797
for (uint32_t j = 0 ; j < i ; j ++ ) {
@@ -2807,14 +2807,14 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
2807
2807
2808
2808
/* Rebuild arginfos if parameter/property types and/or a return type are used */
2809
2809
if (reg_function -> common .arg_info &&
2810
- (reg_function -> common .fn_flags & (ZEND_ACC_HAS_RETURN_TYPE |ZEND_ACC_HAS_TYPE_HINTS ))) {
2811
- /* Treat return type as an extra argument */
2812
- num_args ++ ;
2810
+ (reg_function -> common .fn_flags & (ZEND_ACC_HAS_RETURN_TYPE |ZEND_ACC_HAS_TYPE_HINTS ))) {
2813
2811
/* convert "const char*" class type names into "zend_string*" */
2814
2812
uint32_t i ;
2815
2813
zend_arg_info * arg_info = reg_function -> common .arg_info - 1 ;
2816
2814
zend_arg_info * new_arg_info ;
2817
2815
2816
+ /* Treat return type as an extra argument */
2817
+ num_args ++ ;
2818
2818
new_arg_info = malloc (sizeof (zend_arg_info ) * num_args );
2819
2819
memcpy (new_arg_info , arg_info , sizeof (zend_arg_info ) * num_args );
2820
2820
reg_function -> common .arg_info = new_arg_info + 1 ;
@@ -3432,8 +3432,8 @@ static bool zend_is_callable_check_class(zend_string *name, zend_class_entry *sc
3432
3432
if (!fcc -> object ) {
3433
3433
fcc -> object = zend_get_this_object (frame );
3434
3434
}
3435
- * strict_class = 1 ;
3436
- ret = 1 ;
3435
+ * strict_class = 1 ;
3436
+ ret = 1 ;
3437
3437
}
3438
3438
} else if ((ce = zend_lookup_class (name )) != NULL ) {
3439
3439
zend_class_entry * scope = get_scope (frame );
@@ -3548,8 +3548,8 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3548
3548
zend_object * object = zend_get_this_object (frame );
3549
3549
3550
3550
if (object &&
3551
- instanceof_function (object -> ce , scope ) &&
3552
- instanceof_function (scope , fcc -> calling_scope )) {
3551
+ instanceof_function (object -> ce , scope ) &&
3552
+ instanceof_function (scope , fcc -> calling_scope )) {
3553
3553
fcc -> object = object ;
3554
3554
fcc -> called_scope = object -> ce ;
3555
3555
} else {
@@ -3592,7 +3592,7 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3592
3592
3593
3593
lmname = zend_string_tolower (mname );
3594
3594
if (strict_class &&
3595
- fcc -> calling_scope &&
3595
+ fcc -> calling_scope &&
3596
3596
zend_string_equals_literal (lmname , ZEND_CONSTRUCTOR_FUNC_NAME )) {
3597
3597
fcc -> function_handler = fcc -> calling_scope -> constructor ;
3598
3598
if (fcc -> function_handler ) {
@@ -3602,10 +3602,10 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3602
3602
fcc -> function_handler = Z_PTR_P (zv );
3603
3603
retval = 1 ;
3604
3604
if ((fcc -> function_handler -> op_array .fn_flags & ZEND_ACC_CHANGED ) &&
3605
- !strict_class ) {
3605
+ !strict_class ) {
3606
3606
scope = get_scope (frame );
3607
3607
if (scope &&
3608
- instanceof_function (fcc -> function_handler -> common .scope , scope )) {
3608
+ instanceof_function (fcc -> function_handler -> common .scope , scope )) {
3609
3609
3610
3610
zv = zend_hash_find (& scope -> function_table , lmname );
3611
3611
if (zv != NULL ) {
@@ -3619,9 +3619,9 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3619
3619
}
3620
3620
}
3621
3621
if (!(fcc -> function_handler -> common .fn_flags & ZEND_ACC_PUBLIC ) &&
3622
- (fcc -> calling_scope &&
3623
- ((fcc -> object && fcc -> calling_scope -> __call ) ||
3624
- (!fcc -> object && fcc -> calling_scope -> __callstatic )))) {
3622
+ (fcc -> calling_scope &&
3623
+ ((fcc -> object && fcc -> calling_scope -> __call ) ||
3624
+ (!fcc -> object && fcc -> calling_scope -> __callstatic )))) {
3625
3625
scope = get_scope (frame );
3626
3626
if (fcc -> function_handler -> common .scope != scope ) {
3627
3627
if ((fcc -> function_handler -> common .fn_flags & ZEND_ACC_PRIVATE )
@@ -3643,8 +3643,8 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3643
3643
fcc -> function_handler = fcc -> object -> handlers -> get_method (& fcc -> object , mname , NULL );
3644
3644
if (fcc -> function_handler ) {
3645
3645
if (strict_class &&
3646
- (!fcc -> function_handler -> common .scope ||
3647
- !instanceof_function (ce_org , fcc -> function_handler -> common .scope ))) {
3646
+ (!fcc -> function_handler -> common .scope ||
3647
+ !instanceof_function (ce_org , fcc -> function_handler -> common .scope ))) {
3648
3648
zend_release_fcall_info_cache (fcc );
3649
3649
} else {
3650
3650
retval = 1 ;
@@ -3664,7 +3664,7 @@ static zend_always_inline bool zend_is_callable_check_func(zval *callable, zend_
3664
3664
if (call_via_handler && !fcc -> object ) {
3665
3665
zend_object * object = zend_get_this_object (frame );
3666
3666
if (object &&
3667
- instanceof_function (object -> ce , fcc -> calling_scope )) {
3667
+ instanceof_function (object -> ce , fcc -> calling_scope )) {
3668
3668
fcc -> object = object ;
3669
3669
}
3670
3670
}
@@ -4133,7 +4133,7 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
4133
4133
}
4134
4134
if (access_type & ZEND_ACC_STATIC ) {
4135
4135
if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL &&
4136
- (property_info_ptr -> flags & ZEND_ACC_STATIC ) != 0 ) {
4136
+ (property_info_ptr -> flags & ZEND_ACC_STATIC ) != 0 ) {
4137
4137
property_info -> offset = property_info_ptr -> offset ;
4138
4138
zval_ptr_dtor (& ce -> default_static_members_table [property_info -> offset ]);
4139
4139
zend_hash_del (& ce -> properties_info , name );
@@ -4151,7 +4151,7 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
4151
4151
} else {
4152
4152
zval * property_default_ptr ;
4153
4153
if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL &&
4154
- (property_info_ptr -> flags & ZEND_ACC_STATIC ) == 0 ) {
4154
+ (property_info_ptr -> flags & ZEND_ACC_STATIC ) == 0 ) {
4155
4155
property_info -> offset = property_info_ptr -> offset ;
4156
4156
zval_ptr_dtor (& ce -> default_properties_table [OBJ_PROP_TO_NUM (property_info -> offset )]);
4157
4157
zend_hash_del (& ce -> properties_info , name );
0 commit comments