From 4d7c162d162fe46ad3b6c420bfff23c3b82b0b2c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 15 Oct 1999 06:25:42 +0000 Subject: [PATCH] - Add convert_to_number_ex() --- Zend/zend_operators.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index d0d71e97ab..0add5a936d 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -118,4 +118,12 @@ ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2); convert_to_boolean(*ppzv); \ } +#define convert_scalar_to_number_ex(ppzv) \ + if ((*ppzv)->type!=IS_LONG && (*ppzv)->type!=IS_DOUBLE) { \ + if (!(*ppzv)->is_ref) { \ + SEPARATE_ZVAL(ppzv); \ + } \ + convert_scalar_to_number(*ppzv); \ + } + #endif -- 2.50.1