summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-12-11 15:34:35 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-12-11 15:34:35 +0000
commit19e4dc50589f15841b7da64af668dd0bf968154b (patch)
tree30e951ace5109f20e676dc8c405f1b547be45651
parent7e1973d9fc1924ecc5ab9050712ff3f3b3437f0f (diff)
downloadphp-git-19e4dc50589f15841b7da64af668dd0bf968154b.tar.gz
Removed bool<>long optimization as it causes issues with strict type checks
-rw-r--r--Zend/zend_operators.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}