summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-10-15 06:25:42 +0000
committerAndi Gutmans <andi@php.net>1999-10-15 06:25:42 +0000
commit4d7c162d162fe46ad3b6c420bfff23c3b82b0b2c (patch)
tree2325c0c09ab889b11e460aa0532b82546f1a3184 /Zend/zend_operators.h
parente77485a8f7c1e50b360a68e977bc950e76e23519 (diff)
downloadphp-git-4d7c162d162fe46ad3b6c420bfff23c3b82b0b2c.tar.gz
- Add convert_to_number_ex()
Diffstat (limited to 'Zend/zend_operators.h')
-rw-r--r--Zend/zend_operators.h8
1 files changed, 8 insertions, 0 deletions
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