From: Gabriel Caruso Date: Tue, 6 Feb 2018 13:21:01 +0000 (-0200) Subject: Use bool instead of boolean X-Git-Tag: php-7.3.0alpha1~468^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=414aaa207cc59c279d3fd5ed83f6b92890e57023;p=php Use bool instead of boolean --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index dc6f2d6352..6dce2ffadf 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2535,7 +2535,7 @@ ZEND_API int ZEND_FASTCALL zend_object_is_true(zval *op) /* {{{ */ if (Z_OBJ_HT_P(op)->cast_object(op, &tmp, _IS_BOOL) == SUCCESS) { return Z_TYPE(tmp) == IS_TRUE; } - zend_error(E_RECOVERABLE_ERROR, "Object of class %s could not be converted to boolean", ZSTR_VAL(Z_OBJ_P(op)->ce->name)); + zend_error(E_RECOVERABLE_ERROR, "Object of class %s could not be converted to bool", ZSTR_VAL(Z_OBJ_P(op)->ce->name)); } else if (Z_OBJ_HT_P(op)->get) { int result; zval rv; diff --git a/ext/gmp/tests/cast.phpt b/ext/gmp/tests/cast.phpt index 8606538baf..f3d93af08c 100644 --- a/ext/gmp/tests/cast.phpt +++ b/ext/gmp/tests/cast.phpt @@ -19,4 +19,4 @@ string(2) "42" int(42) float(42) -Recoverable fatal error: Object of class GMP could not be converted to boolean in %s on line %d +Recoverable fatal error: Object of class GMP could not be converted to bool in %s on line %d