@@ -426,7 +426,7 @@ ZEND_API bool ZEND_FASTCALL zend_parse_arg_class(zval *arg, zend_class_entry **p
426
426
}
427
427
/* }}} */
428
428
429
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (zval * arg , zend_bool * dest ) /* {{{ */
429
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak (zval * arg , bool * dest ) /* {{{ */
430
430
{
431
431
if (EXPECTED (Z_TYPE_P (arg ) <= IS_STRING )) {
432
432
* dest = zend_is_true (arg );
@@ -437,7 +437,7 @@ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, zend_bool *dest)
437
437
}
438
438
/* }}} */
439
439
440
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (zval * arg , zend_bool * dest ) /* {{{ */
440
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow (zval * arg , bool * dest ) /* {{{ */
441
441
{
442
442
if (UNEXPECTED (ZEND_ARG_USES_STRICT_TYPES ())) {
443
443
return 0 ;
@@ -644,10 +644,10 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
644
644
case 'l' :
645
645
{
646
646
zend_long * p = va_arg (* va , zend_long * );
647
- zend_bool * is_null = NULL ;
647
+ bool * is_null = NULL ;
648
648
649
649
if (check_null ) {
650
- is_null = va_arg (* va , zend_bool * );
650
+ is_null = va_arg (* va , bool * );
651
651
}
652
652
653
653
if (!zend_parse_arg_long (arg , p , is_null , check_null )) {
@@ -659,10 +659,10 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
659
659
case 'd' :
660
660
{
661
661
double * p = va_arg (* va , double * );
662
- zend_bool * is_null = NULL ;
662
+ bool * is_null = NULL ;
663
663
664
664
if (check_null ) {
665
- is_null = va_arg (* va , zend_bool * );
665
+ is_null = va_arg (* va , bool * );
666
666
}
667
667
668
668
if (!zend_parse_arg_double (arg , p , is_null , check_null )) {
@@ -731,11 +731,11 @@ static const char *zend_parse_arg_impl(zval *arg, va_list *va, const char **spec
731
731
732
732
case 'b' :
733
733
{
734
- zend_bool * p = va_arg (* va , zend_bool * );
735
- zend_bool * is_null = NULL ;
734
+ bool * p = va_arg (* va , bool * );
735
+ bool * is_null = NULL ;
736
736
737
737
if (check_null ) {
738
- is_null = va_arg (* va , zend_bool * );
738
+ is_null = va_arg (* va , bool * );
739
739
}
740
740
741
741
if (!zend_parse_arg_bool (arg , p , is_null , check_null )) {
@@ -956,8 +956,8 @@ static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec,
956
956
uint32_t max_num_args = 0 ;
957
957
uint32_t post_varargs = 0 ;
958
958
zval * arg ;
959
- zend_bool have_varargs = 0 ;
960
- zend_bool have_optional_args = 0 ;
959
+ bool have_varargs = 0 ;
960
+ bool have_optional_args = 0 ;
961
961
zval * * varargs = NULL ;
962
962
int * n_varargs = NULL ;
963
963
@@ -1130,7 +1130,7 @@ ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_
1130
1130
* Z_OBJ(EG(This)) to NULL when calling an internal function with common.scope == NULL.
1131
1131
* In that case EG(This) would still be the $this from the calling code and we'd take the
1132
1132
* wrong branch here. */
1133
- zend_bool is_method = EG (current_execute_data )-> func -> common .scope != NULL ;
1133
+ bool is_method = EG (current_execute_data )-> func -> common .scope != NULL ;
1134
1134
1135
1135
if (!is_method || !this_ptr || Z_TYPE_P (this_ptr ) != IS_OBJECT ) {
1136
1136
va_start (va , type_spec );
@@ -1681,7 +1681,7 @@ ZEND_API zend_result add_next_index_null(zval *arg) /* {{{ */
1681
1681
}
1682
1682
/* }}} */
1683
1683
1684
- ZEND_API zend_result add_next_index_bool (zval * arg , zend_bool b ) /* {{{ */
1684
+ ZEND_API zend_result add_next_index_bool (zval * arg , bool b ) /* {{{ */
1685
1685
{
1686
1686
zval tmp ;
1687
1687
@@ -2949,7 +2949,7 @@ ZEND_API zend_result zend_register_class_alias_ex(const char *name, size_t name_
2949
2949
/* }}} */
2950
2950
2951
2951
// TODO num_symbol_tables as unsigned int?
2952
- ZEND_API zend_result zend_set_hash_symbol (zval * symbol , const char * name , size_t name_length , zend_bool is_ref , int num_symbol_tables , ...) /* {{{ */
2952
+ ZEND_API zend_result zend_set_hash_symbol (zval * symbol , const char * name , size_t name_length , bool is_ref , int num_symbol_tables , ...) /* {{{ */
2953
2953
{
2954
2954
HashTable * symbol_table ;
2955
2955
va_list symbol_table_list ;
@@ -3448,11 +3448,11 @@ ZEND_API zend_string *zend_get_callable_name(zval *callable) /* {{{ */
3448
3448
}
3449
3449
/* }}} */
3450
3450
3451
- ZEND_API zend_bool zend_is_callable_at_frame (
3451
+ ZEND_API bool zend_is_callable_at_frame (
3452
3452
zval * callable , zend_object * object , zend_execute_data * frame ,
3453
3453
uint32_t check_flags , zend_fcall_info_cache * fcc , char * * error ) /* {{{ */
3454
3454
{
3455
- zend_bool ret ;
3455
+ bool ret ;
3456
3456
zend_fcall_info_cache fcc_local ;
3457
3457
bool strict_class = 0 ;
3458
3458
@@ -3569,28 +3569,28 @@ ZEND_API zend_bool zend_is_callable_at_frame(
3569
3569
}
3570
3570
/* }}} */
3571
3571
3572
- ZEND_API zend_bool zend_is_callable_ex (zval * callable , zend_object * object , uint32_t check_flags , zend_string * * callable_name , zend_fcall_info_cache * fcc , char * * error ) /* {{{ */
3572
+ ZEND_API bool zend_is_callable_ex (zval * callable , zend_object * object , uint32_t check_flags , zend_string * * callable_name , zend_fcall_info_cache * fcc , char * * error ) /* {{{ */
3573
3573
{
3574
3574
/* Determine callability at the first parent user frame. */
3575
3575
zend_execute_data * frame = EG (current_execute_data );
3576
3576
while (frame && (!frame -> func || !ZEND_USER_CODE (frame -> func -> type ))) {
3577
3577
frame = frame -> prev_execute_data ;
3578
3578
}
3579
3579
3580
- zend_bool ret = zend_is_callable_at_frame (callable , object , frame , check_flags , fcc , error );
3580
+ bool ret = zend_is_callable_at_frame (callable , object , frame , check_flags , fcc , error );
3581
3581
if (callable_name ) {
3582
3582
* callable_name = zend_get_callable_name_ex (callable , object );
3583
3583
}
3584
3584
return ret ;
3585
3585
}
3586
3586
3587
- ZEND_API zend_bool zend_is_callable (zval * callable , uint32_t check_flags , zend_string * * callable_name ) /* {{{ */
3587
+ ZEND_API bool zend_is_callable (zval * callable , uint32_t check_flags , zend_string * * callable_name ) /* {{{ */
3588
3588
{
3589
3589
return zend_is_callable_ex (callable , NULL , check_flags , callable_name , NULL , NULL );
3590
3590
}
3591
3591
/* }}} */
3592
3592
3593
- ZEND_API zend_bool zend_make_callable (zval * callable , zend_string * * callable_name ) /* {{{ */
3593
+ ZEND_API bool zend_make_callable (zval * callable , zend_string * * callable_name ) /* {{{ */
3594
3594
{
3595
3595
zend_fcall_info_cache fcc ;
3596
3596
@@ -3790,7 +3790,7 @@ static inline zend_string *zval_make_interned_string(zval *zv) /* {{{ */
3790
3790
return Z_STR_P (zv );
3791
3791
}
3792
3792
3793
- static zend_always_inline zend_bool is_persistent_class (zend_class_entry * ce ) {
3793
+ static zend_always_inline bool is_persistent_class (zend_class_entry * ce ) {
3794
3794
return (ce -> type & ZEND_INTERNAL_CLASS )
3795
3795
&& ce -> info .internal .module -> type == MODULE_PERSISTENT ;
3796
3796
}
@@ -3898,7 +3898,7 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
3898
3898
}
3899
3899
/* }}} */
3900
3900
3901
- ZEND_API zend_result zend_try_assign_typed_ref_ex (zend_reference * ref , zval * val , zend_bool strict ) /* {{{ */
3901
+ ZEND_API zend_result zend_try_assign_typed_ref_ex (zend_reference * ref , zval * val , bool strict ) /* {{{ */
3902
3902
{
3903
3903
if (UNEXPECTED (!zend_verify_ref_assignable_zval (ref , val , strict ))) {
3904
3904
zval_ptr_dtor (val );
@@ -3926,7 +3926,7 @@ ZEND_API zend_result zend_try_assign_typed_ref_null(zend_reference *ref) /* {{{
3926
3926
}
3927
3927
/* }}} */
3928
3928
3929
- ZEND_API zend_result zend_try_assign_typed_ref_bool (zend_reference * ref , zend_bool val ) /* {{{ */
3929
+ ZEND_API zend_result zend_try_assign_typed_ref_bool (zend_reference * ref , bool val ) /* {{{ */
3930
3930
{
3931
3931
zval tmp ;
3932
3932
@@ -4016,7 +4016,7 @@ ZEND_API zend_result zend_try_assign_typed_ref_zval(zend_reference *ref, zval *z
4016
4016
}
4017
4017
/* }}} */
4018
4018
4019
- ZEND_API zend_result zend_try_assign_typed_ref_zval_ex (zend_reference * ref , zval * zv , zend_bool strict ) /* {{{ */
4019
+ ZEND_API zend_result zend_try_assign_typed_ref_zval_ex (zend_reference * ref , zval * zv , bool strict ) /* {{{ */
4020
4020
{
4021
4021
zval tmp ;
4022
4022
@@ -4167,7 +4167,7 @@ ZEND_API void zend_declare_class_constant_long(zend_class_entry *ce, const char
4167
4167
}
4168
4168
/* }}} */
4169
4169
4170
- ZEND_API void zend_declare_class_constant_bool (zend_class_entry * ce , const char * name , size_t name_length , zend_bool value ) /* {{{ */
4170
+ ZEND_API void zend_declare_class_constant_bool (zend_class_entry * ce , const char * name , size_t name_length , bool value ) /* {{{ */
4171
4171
{
4172
4172
zval constant ;
4173
4173
@@ -4408,7 +4408,7 @@ ZEND_API zend_result zend_update_static_property_stringl(zend_class_entry *scope
4408
4408
}
4409
4409
/* }}} */
4410
4410
4411
- ZEND_API zval * zend_read_property_ex (zend_class_entry * scope , zend_object * object , zend_string * name , zend_bool silent , zval * rv ) /* {{{ */
4411
+ ZEND_API zval * zend_read_property_ex (zend_class_entry * scope , zend_object * object , zend_string * name , bool silent , zval * rv ) /* {{{ */
4412
4412
{
4413
4413
zval * value ;
4414
4414
zend_class_entry * old_scope = EG (fake_scope );
@@ -4422,7 +4422,7 @@ ZEND_API zval *zend_read_property_ex(zend_class_entry *scope, zend_object *objec
4422
4422
}
4423
4423
/* }}} */
4424
4424
4425
- ZEND_API zval * zend_read_property (zend_class_entry * scope , zend_object * object , const char * name , size_t name_length , zend_bool silent , zval * rv ) /* {{{ */
4425
+ ZEND_API zval * zend_read_property (zend_class_entry * scope , zend_object * object , const char * name , size_t name_length , bool silent , zval * rv ) /* {{{ */
4426
4426
{
4427
4427
zval * value ;
4428
4428
zend_string * str ;
@@ -4434,7 +4434,7 @@ ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object,
4434
4434
}
4435
4435
/* }}} */
4436
4436
4437
- ZEND_API zval * zend_read_static_property_ex (zend_class_entry * scope , zend_string * name , zend_bool silent ) /* {{{ */
4437
+ ZEND_API zval * zend_read_static_property_ex (zend_class_entry * scope , zend_string * name , bool silent ) /* {{{ */
4438
4438
{
4439
4439
zval * property ;
4440
4440
zend_class_entry * old_scope = EG (fake_scope );
@@ -4447,7 +4447,7 @@ ZEND_API zval *zend_read_static_property_ex(zend_class_entry *scope, zend_string
4447
4447
}
4448
4448
/* }}} */
4449
4449
4450
- ZEND_API zval * zend_read_static_property (zend_class_entry * scope , const char * name , size_t name_length , zend_bool silent ) /* {{{ */
4450
+ ZEND_API zval * zend_read_static_property (zend_class_entry * scope , const char * name , size_t name_length , bool silent ) /* {{{ */
4451
4451
{
4452
4452
zend_string * key = zend_string_init (name , name_length , 0 );
4453
4453
zval * property = zend_read_static_property_ex (scope , key , silent );
@@ -4493,7 +4493,7 @@ ZEND_API ZEND_COLD const char *zend_get_object_type(const zend_class_entry *ce)
4493
4493
}
4494
4494
/* }}} */
4495
4495
4496
- ZEND_API zend_bool zend_is_iterable (zval * iterable ) /* {{{ */
4496
+ ZEND_API bool zend_is_iterable (zval * iterable ) /* {{{ */
4497
4497
{
4498
4498
switch (Z_TYPE_P (iterable )) {
4499
4499
case IS_ARRAY :
@@ -4506,7 +4506,7 @@ ZEND_API zend_bool zend_is_iterable(zval *iterable) /* {{{ */
4506
4506
}
4507
4507
/* }}} */
4508
4508
4509
- ZEND_API zend_bool zend_is_countable (zval * countable ) /* {{{ */
4509
+ ZEND_API bool zend_is_countable (zval * countable ) /* {{{ */
4510
4510
{
4511
4511
switch (Z_TYPE_P (countable )) {
4512
4512
case IS_ARRAY :
0 commit comments