diff options
-rw-r--r-- | Zend/zend_builtin_functions.c | 7 | ||||
-rw-r--r-- | ext/standard/array.c | 6 | ||||
-rw-r--r-- | ext/standard/string.c | 6 | ||||
-rw-r--r-- | ext/standard/type.c | 13 |
4 files changed, 32 insertions, 0 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 9e3f5296fa..6588c2ded1 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -670,9 +670,16 @@ ZEND_FUNCTION(error_reporting) zend_string *err; int old_error_reporting; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "|S", &err) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(0, 1) + Z_PARAM_OPTIONAL + Z_PARAM_STR(err) + ZEND_PARSE_PARAMETERS_END(); +#endif old_error_reporting = EG(error_reporting); if(ZEND_NUM_ARGS() != 0) { diff --git a/ext/standard/array.c b/ext/standard/array.c index a85aa8b19e..f31015b1e2 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2788,9 +2788,15 @@ PHP_FUNCTION(array_values) zval *input, /* Input array */ *entry; /* An entry in the input array */ +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "a", &input) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ARRAY(input) + ZEND_PARSE_PARAMETERS_END(); +#endif /* Initialize return array */ array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); diff --git a/ext/standard/string.c b/ext/standard/string.c index 135008f63c..c377caef1e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1406,9 +1406,15 @@ PHP_FUNCTION(strtoupper) { zend_string *arg; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &arg) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STR(arg) + ZEND_PARSE_PARAMETERS_END(); +#endif RETURN_STR(php_string_toupper(arg)); } diff --git a/ext/standard/type.c b/ext/standard/type.c index a260c436cb..d70672ea77 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -194,9 +194,16 @@ PHP_FUNCTION(boolval) PHP_FUNCTION(strval) { zval *num; + +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &num) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ZVAL(num) + ZEND_PARSE_PARAMETERS_END(); +#endif RETVAL_STR(zval_get_string(num)); } @@ -322,9 +329,15 @@ PHP_FUNCTION(is_numeric) { zval *arg; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { return; } +#else + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ZVAL(arg) + ZEND_PARSE_PARAMETERS_END(); +#endif switch (Z_TYPE_P(arg)) { case IS_LONG: |