bjori Wed Jul 25 09:05:55 2007 UTC
Modified files:
/php-src/ext/posix posix.c
Log:
Show "wrong parameter count" error messages
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.93&r2=1.94&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.93 php-src/ext/posix/posix.c:1.94
--- php-src/ext/posix/posix.c:1.93 Thu Feb 22 23:40:25 2007
+++ php-src/ext/posix/posix.c Wed Jul 25 09:05:55 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.93 2007/02/22 23:40:25 tony2001 Exp $ */
+/* $Id: posix.c,v 1.94 2007/07/25 09:05:55 bjori Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -147,7 +147,7 @@
static PHP_MINFO_FUNCTION(posix)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Revision", "$Revision: 1.93 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.94 $");
php_info_print_table_end();
}
/* }}} */
@@ -209,7 +209,7 @@
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 \
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php