File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2524,21 +2524,21 @@ ZEND_API zend_result ZEND_FASTCALL decrement_function(zval *op1) /* {{{ */
2524
2524
}
2525
2525
/* }}} */
2526
2526
2527
- ZEND_API int ZEND_FASTCALL zend_is_true (zval * op ) /* {{{ */
2527
+ ZEND_API bool ZEND_FASTCALL zend_is_true (zval * op ) /* {{{ */
2528
2528
{
2529
2529
return i_zend_is_true (op );
2530
2530
}
2531
2531
/* }}} */
2532
2532
2533
- ZEND_API int ZEND_FASTCALL zend_object_is_true (zval * op ) /* {{{ */
2533
+ ZEND_API bool ZEND_FASTCALL zend_object_is_true (zval * op ) /* {{{ */
2534
2534
{
2535
2535
zend_object * zobj = Z_OBJ_P (op );
2536
2536
zval tmp ;
2537
2537
if (zobj -> handlers -> cast_object (zobj , & tmp , _IS_BOOL ) == SUCCESS ) {
2538
2538
return Z_TYPE (tmp ) == IS_TRUE ;
2539
2539
}
2540
2540
zend_error (E_RECOVERABLE_ERROR , "Object of class %s could not be converted to bool" , ZSTR_VAL (zobj -> ce -> name ));
2541
- return 1 ;
2541
+ return false ;
2542
2542
}
2543
2543
/* }}} */
2544
2544
Original file line number Diff line number Diff line change @@ -341,8 +341,8 @@ static zend_always_inline zend_bool try_convert_to_string(zval *op) {
341
341
#define convert_to_string (op ) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); }
342
342
343
343
344
- ZEND_API int ZEND_FASTCALL zend_is_true (zval * op );
345
- ZEND_API int ZEND_FASTCALL zend_object_is_true (zval * op );
344
+ ZEND_API bool ZEND_FASTCALL zend_is_true (zval * op );
345
+ ZEND_API bool ZEND_FASTCALL zend_object_is_true (zval * op );
346
346
347
347
#define zval_is_true (op ) \
348
348
zend_is_true(op)
You can’t perform that action at this time.
0 commit comments