]> granicus.if.org Git - php/commitdiff
- IS_NULL should be 0 when converted to a long although I don't think it
authorAndi Gutmans <andi@php.net>
Sat, 1 Jan 2000 18:47:03 +0000 (18:47 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 1 Jan 2000 18:47:03 +0000 (18:47 +0000)
  really should be documented.

Zend/zend_operators.c

index d77e84868f720c675802001814bece7dbe6ba56f..e85713717f190d63fa3e9ba8a292022edd535c4b 100644 (file)
@@ -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);                                                                                       \
        }