bjori           Sun Oct  8 15:27:28 2006 UTC

  Modified files:              
    /php-src/ext/gd     gd.c 
  Log:
  Fix "wrong param count" error message
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.358&r2=1.359&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.358 php-src/ext/gd/gd.c:1.359
--- php-src/ext/gd/gd.c:1.358   Sat Oct  7 18:12:04 2006
+++ php-src/ext/gd/gd.c Sun Oct  8 15:27:28 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.358 2006/10/07 18:12:04 iliaa Exp $ */
+/* $Id: gd.c,v 1.359 2006/10/08 15:27:28 bjori Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -4509,8 +4509,10 @@
                php_image_filter_smooth
        };
 
-       if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 5 || 
zend_parse_parameters(2 TSRMLS_CC, "rl", &tmp, &filtertype) == FAILURE) {
-               ZEND_WRONG_PARAM_COUNT();
+       if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 5) {
+               WRONG_PARAM_COUNT;
+       } else if (zend_parse_parameters(2 TSRMLS_CC, "rl", &tmp, &filtertype) 
== FAILURE) {
+               return;
        }
 
        if (filtertype >= 0 && filtertype <= IMAGE_FILTER_MAX) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to