summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-05-01 21:45:30 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-05-02 11:05:37 +0200
commitffcc8135e2acb563262f3fe03e629448d2d4d321 (patch)
treed43aa2c25a75beeaafcc64d96025e5693f25c1f0 /Zend/zend_API.h
parent089d8cb03ccf51523c4c080e68d2e64848b6e2cc (diff)
downloadphp-git-ffcc8135e2acb563262f3fe03e629448d2d4d321.tar.gz
Convert UNKNOWN default values to null in ext/date
Closes GH-5509
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index fe6ec000e9..76355090e9 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -1354,6 +1354,9 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num
#define Z_PARAM_DOUBLE(dest) \
Z_PARAM_DOUBLE_EX(dest, _dummy, 0, 0)
+#define Z_PARAM_DOUBLE_OR_NULL(dest, is_null) \
+ Z_PARAM_DOUBLE_EX(dest, is_null, 1, 0)
+
/* old "f" */
#define Z_PARAM_FUNC_EX2(dest_fci, dest_fcc, check_null, deref, separate) \
Z_PARAM_PROLOGUE(deref, separate); \