bjori Wed Jul 25 09:06:22 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/posix posix.c
Log:
MFH: Show "wrong parameter count" error messages
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.70.2.3.2.15&r2=1.70.2.3.2.16&diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.70.2.3.2.15
php-src/ext/posix/posix.c:1.70.2.3.2.16
--- php-src/ext/posix/posix.c:1.70.2.3.2.15 Thu Feb 22 23:40:39 2007
+++ php-src/ext/posix/posix.c Wed Jul 25 09:06:22 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.70.2.3.2.15 2007/02/22 23:40:39 tony2001 Exp $ */
+/* $Id: posix.c,v 1.70.2.3.2.16 2007/07/25 09:06:22 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.70.2.3.2.15 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.16 $");
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