Skip to content

Commit e634f07

Browse files
committed
Merge branch 'master' of https://git.php.net/push/php-src
2 parents 22fc3ba + e0cd182 commit e634f07

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
File renamed without changes.

ext/standard/math.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,16 @@ PHP_FUNCTION(ceil)
327327
{
328328
zval *value;
329329

330+
#ifndef FAST_ZPP
330331
if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &value) == FAILURE) {
331332
return;
332333
}
334+
#else
335+
ZEND_PARSE_PARAMETERS_START(1, 1)
336+
Z_PARAM_ZVAL(value)
337+
ZEND_PARSE_PARAMETERS_END();
338+
#endif
339+
333340
convert_scalar_to_number_ex(value);
334341

335342
if (Z_TYPE_P(value) == IS_DOUBLE) {
@@ -347,9 +354,16 @@ PHP_FUNCTION(floor)
347354
{
348355
zval *value;
349356

357+
#ifndef FAST_ZPP
350358
if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &value) == FAILURE) {
351359
return;
352360
}
361+
#else
362+
ZEND_PARSE_PARAMETERS_START(1, 1)
363+
Z_PARAM_ZVAL(value)
364+
ZEND_PARSE_PARAMETERS_END();
365+
#endif
366+
353367
convert_scalar_to_number_ex(value);
354368

355369
if (Z_TYPE_P(value) == IS_DOUBLE) {

0 commit comments

Comments
 (0)