]> granicus.if.org Git - php/commitdiff
Use bool instead of boolean
authorGabriel Caruso <carusogabriel34@gmail.com>
Tue, 6 Feb 2018 13:21:01 +0000 (11:21 -0200)
committerJoe <krakjoe@php.net>
Thu, 8 Feb 2018 09:00:49 +0000 (10:00 +0100)
Zend/zend_operators.c
ext/gmp/tests/cast.phpt

index dc6f2d6352dd6cc542faa0011018f35522c47257..6dce2ffadfe0b9c4ac44ff1fec6644ab3021af27 100644 (file)
@@ -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;
index 8606538bafb17f749bb80956c703f57c5f507643..f3d93af08c07939f8e8cf6dc631e7fbe890cf60f 100644 (file)
@@ -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