From: Dmitry Patsura Date: Tue, 19 May 2015 13:19:13 +0000 (+0800) Subject: [Math] ceil, floor added FAST_ZPP parameters pass X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~34^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6f8b4e949e6877f1e3e7ba5bdb653fa113936b0;p=php [Math] ceil, floor added FAST_ZPP parameters pass --- diff --git a/ext/standard/math.c b/ext/standard/math.c index a3685c00b9..1ae74f8049 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -327,9 +327,16 @@ PHP_FUNCTION(ceil) { zval *value; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &value) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ZVAL(value) + ZEND_PARSE_PARAMETERS_END(); +#endif + convert_scalar_to_number_ex(value); if (Z_TYPE_P(value) == IS_DOUBLE) { @@ -347,9 +354,16 @@ PHP_FUNCTION(floor) { zval *value; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &value) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ZVAL(value) + ZEND_PARSE_PARAMETERS_END(); +#endif + convert_scalar_to_number_ex(value); if (Z_TYPE_P(value) == IS_DOUBLE) {