diff options
author | Andi Gutmans <andi@php.net> | 2000-01-01 18:47:03 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-01-01 18:47:03 +0000 |
commit | 4a4fe0974f34adf4dc88ecc9683465b8ddbd1f4e (patch) | |
tree | 162b054d9e336ba05c2f56452ce06d9bb49d6f16 /Zend/zend_operators.c | |
parent | 8edf2b88dc37efbe90af8b669df2730fc937e6a8 (diff) | |
download | php-git-4a4fe0974f34adf4dc88ecc9683465b8ddbd1f4e.tar.gz |
- IS_NULL should be 0 when converted to a long although I don't think it
really should be documented.
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index d77e84868f..e85713717f 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -86,6 +86,7 @@ ZEND_API void convert_scalar_to_number(zval *op) (holder).type = IS_LONG; \ (op) = &(holder); \ } else if ((op)->type==IS_UNSET) { \ + (holder).value.lval = 0; \ (holder).type = IS_LONG; \ (op) = &(holder); \ } |