]> granicus.if.org Git - php/commitdiff
MFH: Show "wrong parameter count" error messages
authorHannes Magnusson <bjori@php.net>
Wed, 25 Jul 2007 09:06:22 +0000 (09:06 +0000)
committerHannes Magnusson <bjori@php.net>
Wed, 25 Jul 2007 09:06:22 +0000 (09:06 +0000)
ext/posix/posix.c

index 35910e0f28d1ef682156c0371a44c323cc338645..64ee78fc3b6da6f6cfed3bf658115febcd6ae694 100644 (file)
@@ -209,7 +209,7 @@ zend_module_entry posix_module_entry = {
 ZEND_GET_MODULE(posix)
 #endif
 
-#define PHP_POSIX_NO_ARGS      if (ZEND_NUM_ARGS()) return;
+#define PHP_POSIX_NO_ARGS      if (ZEND_NUM_ARGS()) WRONG_PARAM_COUNT;
 
 #define PHP_POSIX_RETURN_LONG_FUNC(func_name)  \
        PHP_POSIX_NO_ARGS       \