From d2d88e74a0c05a0b4bb3e6942e1db948dc970f28 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 25 Jul 2007 09:06:22 +0000 Subject: [PATCH] MFH: Show "wrong parameter count" error messages --- ext/posix/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 35910e0f28..64ee78fc3b 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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 \ -- 2.40.0