From: Hannes Magnusson Date: Wed, 25 Jul 2007 09:06:22 +0000 (+0000) Subject: MFH: Show "wrong parameter count" error messages X-Git-Tag: php-5.2.4RC1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2d88e74a0c05a0b4bb3e6942e1db948dc970f28;p=php MFH: Show "wrong parameter count" error messages --- 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 \