From: Dmitry Stogov Date: Mon, 19 Sep 2005 17:50:24 +0000 (+0000) Subject: MFH (removed unnecesary call to zval_ptr_dtor) X-Git-Tag: php-5.1.0RC2~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d3ac927299ce9b36c641c4bfe30c6b5fe65d1bb;p=php MFH (removed unnecesary call to zval_ptr_dtor) --- diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index 9aa0ea4398..c388e37e17 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -102,7 +102,7 @@ static inline int i_zend_is_true(zval *op) if (Z_OBJ_HT_P(op)->cast_object) { zval tmp; - if (Z_OBJ_HT_P(op)->cast_object(op, &tmp, IS_BOOL, 1 TSRMLS_CC) == SUCCESS) { + if (Z_OBJ_HT_P(op)->cast_object(op, &tmp, IS_BOOL, 0 TSRMLS_CC) == SUCCESS) { result = Z_LVAL(tmp); break; }