From a0a19d79b94ea37616b92fbd22925bf762f995f4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 11 Feb 2007 11:13:40 +0000 Subject: [PATCH] - MFB: Fixed bug #40428, imagepstext() doesn't accept optional parameter (Pierre) --- ext/gd/gd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index b291614bd61..2a0d99704c9 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3807,11 +3807,6 @@ PHP_FUNCTION(imagepstext) T1_TMATRIX *transform = NULL; char *str; int str_len; - int argc = ZEND_NUM_ARGS(); - - if (argc != 8 && argc != 12) { - ZEND_WRONG_PARAM_COUNT(); - } if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsrlllll|lldl", &img, &str, &str_len, &fnt, &size, &_fg, &_bg, &x, &y, &space, &width, &angle, &aa_steps) == FAILURE) { return;