From 19e4dc50589f15841b7da64af668dd0bf968154b Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 11 Dec 2006 15:34:35 +0000 Subject: Removed bool<>long optimization as it causes issues with strict type checks --- Zend/zend_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_operators.c') diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index a51b33b5c7..52f7680a23 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -306,7 +306,7 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC) ZEND_API void convert_to_long(zval *op) { - if ((op)->type != IS_BOOL && (op)->type != IS_LONG) { + if ((op)->type == IS_LONG) { convert_to_long_base(op, 10); } } -- cgit v1.2.1