summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r--ext/standard/math.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 6d18c0b2dd..0704195e51 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -295,9 +295,16 @@ PHP_FUNCTION(abs)
{
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) {