mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)
This commit is contained in:
parent
f8f7fd2db1
commit
7936c8085e
145 changed files with 563 additions and 544 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue