From: Zeev Suraski Date: Mon, 24 May 1999 16:43:47 +0000 (+0000) Subject: Another operators fix X-Git-Tag: BEFORE_REMOVING_GC_STEP1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbcd462d460c85c90f1bd356c2ea3b2f50658d79;p=php Another operators fix --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 59176bb1f8..3a18e94b24 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -66,6 +66,10 @@ ZEND_API void convert_scalar_to_number(zval *op) case IS_BC: \ (holder).type = IS_DOUBLE; /* may have lost significant digits */ \ break; \ + case IS_RESOURCE: \ + case IS_BOOL: \ + (holder).type = IS_LONG; \ + break; \ default: \ (holder).value.lval = strtol((op)->value.str.val, NULL, 10); \ (holder).type = IS_LONG; \