diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-01 20:49:47 +0200 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-02 11:05:19 +0200 |
| commit | 8a41c9e025b003ff26b9bf76728f3cd054474e08 (patch) | |
| tree | bfcccac9c9ba16499c605df831894e004abcdd8e /ext/bcmath/bcmath_arginfo.h | |
| parent | d63eca285aca32db26e54214c0a1371a14ea9e31 (diff) | |
| download | php-git-8a41c9e025b003ff26b9bf76728f3cd054474e08.tar.gz | |
Convert UNKNOWN default values to null in ext/bcmath
Diffstat (limited to 'ext/bcmath/bcmath_arginfo.h')
| -rw-r--r-- | ext/bcmath/bcmath_arginfo.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bcmath/bcmath_arginfo.h b/ext/bcmath/bcmath_arginfo.h index 61f0092b45..75f864dc9d 100644 --- a/ext/bcmath/bcmath_arginfo.h +++ b/ext/bcmath/bcmath_arginfo.h @@ -3,7 +3,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcadd, 0, 2, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, right_operand, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() #define arginfo_bcsub arginfo_bcadd @@ -13,7 +13,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcdiv, 0, 2, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, dividend, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, divisor, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() #define arginfo_bcmod arginfo_bcdiv @@ -22,28 +22,28 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bcpowmod, 0, 3, MAY_BE_STRING|MA ZEND_ARG_TYPE_INFO(0, base, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, modulus, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcpow, 0, 2, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, base, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcsqrt, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, operand, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bccomp, 0, 2, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, left_operand, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, right_operand, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bcscale, 0, 0, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, scale, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") ZEND_END_ARG_INFO() |
