]> granicus.if.org Git - php/commitdiff
- Fixed bug #40428, imagepstext() doesn't accept optional parameter
authorPierre Joye <pajoye@php.net>
Sun, 11 Feb 2007 11:11:48 +0000 (11:11 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 11 Feb 2007 11:11:48 +0000 (11:11 +0000)
  (Pierre)

NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index b04eda72b87b803192f99042504855aba4ccd249..23dbb1a5d5c878abeea98f739b6542e7d9391787 100644 (file)
--- 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)
 
index 573a727a181ebf6ea78b05329c96785a2919c2ac..56e0f9e40585357459fbff26c430f22be49e4e4c 100644 (file)
@@ -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;