summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-12-27 13:32:22 +0000
committerMarcus Boerger <helly@php.net>2004-12-27 13:32:22 +0000
commit03af7c8abcf54a98c368d5654095a22bf22f1b2a (patch)
tree13e6db88441b29d555d23ba35dec60a27c178f64 /ext/reflection/php_reflection.c
parent698c0361d62060c10e206480a397ddc9ea814fba (diff)
downloadphp-git-03af7c8abcf54a98c368d5654095a22bf22f1b2a.tar.gz
- More proto/error message fixes
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 54b25a8ab9..29d3b7674e 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1397,7 +1397,7 @@ static int _zval_array_to_c_array(zval **arg, zval ****params TSRMLS_DC) /* {{{
} /* }}} */
/* {{{ proto public mixed ReflectionFunction::invokeArgs(array args)
- Invokes the function */
+ Invokes the function and pass its arguments as array. */
ZEND_METHOD(reflection_function, invokeArgs)
{
zval *retval_ptr;
@@ -1907,7 +1907,7 @@ ZEND_METHOD(reflection_method, __toString)
/* }}} */
/* {{{ proto public mixed ReflectionMethod::invoke(mixed object, mixed* args)
- Invokes the function. Pass a */
+ Invokes the method. */
ZEND_METHOD(reflection_method, invoke)
{
zval *retval_ptr;
@@ -1924,7 +1924,7 @@ ZEND_METHOD(reflection_method, invoke)
METHOD_NOTSTATIC;
if (argc < 1) {
- zend_error(E_WARNING, "%s expects at least one parameter, none given", get_active_function_name(TSRMLS_C));
+ zend_error(E_WARNING, "Invoke() expects at least one parameter, none given");
RETURN_FALSE;
}
@@ -1934,11 +1934,11 @@ ZEND_METHOD(reflection_method, invoke)
(mptr->common.fn_flags & ZEND_ACC_ABSTRACT)) {
if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) {
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC,
- "Trying to invoke abstract method %s::%s",
+ "Trying to invoke abstract method %s::%s()",
mptr->common.scope->name, mptr->common.function_name);
} else {
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC,
- "Trying to invoke %s method %s::%s from scope %s",
+ "Trying to invoke %s method %s::%s() from scope %s",
mptr->common.fn_flags & ZEND_ACC_PROTECTED ? "protected" : "private",
mptr->common.scope->name, mptr->common.function_name,
Z_OBJCE_P(getThis())->name);
@@ -2010,7 +2010,7 @@ ZEND_METHOD(reflection_method, invoke)
/* }}} */
/* {{{ proto public mixed ReflectionMethod::invokeArgs(mixed object, array args)
- Invokes the function. Pass a */
+ Invokes the function and pass its arguments as array. */
ZEND_METHOD(reflection_method, invokeArgs)
{
zval *retval_ptr;