From 4a4fe0974f34adf4dc88ecc9683465b8ddbd1f4e Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sat, 1 Jan 2000 18:47:03 +0000 Subject: [PATCH] - IS_NULL should be 0 when converted to a long although I don't think it really should be documented. --- Zend/zend_operators.c | 1 + 1 file changed, 1 insertion(+) 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); \ } -- 2.40.0