summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-05-14 23:48:03 +0000
committerFelipe Pena <felipe@php.net>2010-05-14 23:48:03 +0000
commitc9fc939be0dd02679b44dc419b2bcbccb39a2365 (patch)
treea4105e99d48274444a52bcb1c82aaa1dffbd0113 /Zend/zend_API.c
parente3be1e0bead65f0ac086b7cc9138d2ef4c195984 (diff)
downloadphp-git-c9fc939be0dd02679b44dc419b2bcbccb39a2365.tar.gz
- Fixed bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 49464705da..f8ce293210 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -721,7 +721,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
zend_error(E_WARNING, "%s%s%s(): only one varargs specifier (* or +) is permitted",
class_name,
class_name[0] ? "::" : "",
- get_active_function_name(TSRMLS_C));
+ active_function->common.function_name);
}
return FAILURE;
}
@@ -741,7 +741,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
zend_error(E_WARNING, "%s%s%s(): bad type specifier while parsing parameters",
class_name,
class_name[0] ? "::" : "",
- get_active_function_name(TSRMLS_C));
+ active_function->common.function_name);
}
return FAILURE;
}
@@ -764,7 +764,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
zend_error(E_WARNING, "%s%s%s() expects %s %d parameter%s, %d given",
class_name,
class_name[0] ? "::" : "",
- get_active_function_name(TSRMLS_C),
+ active_function->common.function_name,
min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most",
num_args < min_num_args ? min_num_args : max_num_args,
(num_args < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s",