diff --git a/NEWS b/NEWS index b04eda72b87..23dbb1a5d5c 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 573a727a181..56e0f9e4058 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;