]> granicus.if.org Git - php/commitdiff
Removed bool<>long optimization as it causes issues with strict type checks
authorIlia Alshanetsky <iliaa@php.net>
Mon, 11 Dec 2006 15:34:35 +0000 (15:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 11 Dec 2006 15:34:35 +0000 (15:34 +0000)
Zend/zend_operators.c

index a51b33b5c71349f1a7605b78e693db8fcd802959..52f7680a23315dd998d3eec6f09e1ac795c6f5cd 100644 (file)
@@ -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);
        }
 }