diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-12-11 15:34:35 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-12-11 15:34:35 +0000 |
| commit | 19e4dc50589f15841b7da64af668dd0bf968154b (patch) | |
| tree | 30e951ace5109f20e676dc8c405f1b547be45651 /Zend/zend_operators.c | |
| parent | 7e1973d9fc1924ecc5ab9050712ff3f3b3437f0f (diff) | |
| download | php-git-19e4dc50589f15841b7da64af668dd0bf968154b.tar.gz | |
Removed bool<>long optimization as it causes issues with strict type checks
Diffstat (limited to 'Zend/zend_operators.c')
| -rw-r--r-- | Zend/zend_operators.c | 2 |
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); } } |
