Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)

This commit is contained in:
Máté Kocsis 2023-01-23 10:52:14 +01:00 committed by GitHub
parent f8f7fd2db1
commit 7936c8085e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
145 changed files with 563 additions and 544 deletions

View file

@ -1560,7 +1560,7 @@ try_again:
if (result != op1) {
ZVAL_UNDEF(result);
}
zend_type_error("Cannot perform bitwise not on %s", zend_zval_type_name(op1));
zend_type_error("Cannot perform bitwise not on %s", zend_zval_value_name(op1));
return FAILURE;
}
}
@ -2541,7 +2541,7 @@ try_again:
ZEND_FALLTHROUGH;
case IS_RESOURCE:
case IS_ARRAY:
zend_type_error("Cannot increment %s", zend_zval_type_name(op1));
zend_type_error("Cannot increment %s", zend_zval_value_name(op1));
return FAILURE;
EMPTY_SWITCH_DEFAULT_CASE()
}
@ -2603,7 +2603,7 @@ try_again:
ZEND_FALLTHROUGH;
case IS_RESOURCE:
case IS_ARRAY:
zend_type_error("Cannot decrement %s", zend_zval_type_name(op1));
zend_type_error("Cannot decrement %s", zend_zval_value_name(op1));
return FAILURE;
EMPTY_SWITCH_DEFAULT_CASE()
}