From: Nikita Popov Date: Tue, 6 May 2014 17:03:02 +0000 (+0200) Subject: Sync zend_is_true with convert_to_boolean (fixes GMP test) X-Git-Tag: POST_PHPNG_MERGE~396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=409e9134ac850346b33a6cb10a25a9d89750582e;p=php Sync zend_is_true with convert_to_boolean (fixes GMP test) --- diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index d07a3e0f64..52689d2d6a 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -114,6 +114,8 @@ again: result = Z_TYPE(tmp) == IS_TRUE; break; } + + zend_error(E_RECOVERABLE_ERROR, "Object of class %s could not be converted to boolean", Z_OBJ_P(op)->ce->name->val); } else if (Z_OBJ_HT_P(op)->get) { zval rv; zval *tmp = Z_OBJ_HT_P(op)->get(op, &rv TSRMLS_CC);