]> granicus.if.org Git - php/commitdiff
- MFH: More proto/error message fixes
authorMarcus Boerger <helly@php.net>
Mon, 27 Dec 2004 13:33:04 +0000 (13:33 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 27 Dec 2004 13:33:04 +0000 (13:33 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index a142ba7e2e3baa248d815099ae8a9ed9a9c1cee2..ddc5fd1684821abfb2bc8233a6f9e6e38f493aea 100644 (file)
@@ -1843,7 +1843,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;
@@ -1860,7 +1860,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;
        }
        
@@ -1870,11 +1870,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);
index a142ba7e2e3baa248d815099ae8a9ed9a9c1cee2..ddc5fd1684821abfb2bc8233a6f9e6e38f493aea 100644 (file)
@@ -1843,7 +1843,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;
@@ -1860,7 +1860,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;
        }
        
@@ -1870,11 +1870,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);