From 18e4a7aacbbe08914cc6915b58c4c74a9a5e41d4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 11 Feb 2007 11:11:48 +0000 Subject: [PATCH] - Fixed bug #40428, imagepstext() doesn't accept optional parameter (Pierre) --- NEWS | 1 + ext/gd/gd.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/NEWS b/NEWS index b04eda72b8..23dbb1a5d5 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ PHP NEWS - Add --ri switch to CLI which allows to check extension information. (Marcus) - Fixed bug #40431 (dynamic properties may cause crash in ReflectionProperty methods). (Tony) +- Fixed bug #40428, imagepstext() doesn't accept optional parameter (Pierre) - Fixed bug #40410 (ext/posix does not compile on MacOS 10.3.9). (Tony) - Fixed bug #39836 (SplObjectStorage empty after unserialize). (Marcus) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 573a727a18..56e0f9e405 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -4338,11 +4338,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; -- 2.50.1