On Tue, 2003-07-22 at 21:39, Sebastian Bergmann wrote:
> I know that the usage of invoke() in the example below is wrong, but it
> should not segfault:
Absolutely right:)
- Timm
Index: Zend/zend_reflection_api.c
===================================================================
RCS file: /repository/ZendEngine2/zend_reflection_api.c,v
retrieving revision 1.17
diff -u -r1.17 zend_reflection_api.c
--- Zend/zend_reflection_api.c 20 Jul 2003 20:16:07 -0000 1.17
+++ Zend/zend_reflection_api.c 22 Jul 2003 22:48:59 -0000
@@ -945,7 +945,7 @@
METHOD_NOTSTATIC;
if (argc < 1) {
- zend_error(E_WARNING, "First parameter is expected to be an instance of %s", mptr->common.scope->name);
+ zend_error(E_WARNING, "%s expects exactly at least one parameter, none given", get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php