]> granicus.if.org Git - php/commitdiff
Require second parameter of imagecrop()
authorJakub Vrana <jakub@vrana.cz>
Wed, 15 May 2013 19:40:49 +0000 (12:40 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 24 Jun 2013 03:29:54 +0000 (20:29 -0700)
ext/gd/gd.c

index 21aa9e27274a6a11a25e27a8b0098ac21476715b..49370a75d212fcb359e2cdb54e1a96bbe51d2725 100644 (file)
@@ -4964,7 +4964,7 @@ PHP_FUNCTION(imagecrop)
        zval *z_rect;
        zval **tmp;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|a", &IM, &z_rect) == FAILURE)  {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ra", &IM, &z_rect) == FAILURE)  {
                return;
        }