Commit:    e1acaea4f1a2316ac89dce6c79fca483095bdca2
Author:    Jakub Vrana <ja...@vrana.cz>         Wed, 15 May 2013 12:40:49 -0700
Committer: Stanislav Malyshev <s...@php.net>      Sun, 23 Jun 2013 20:29:54 
-0700
Parents:   1beb24bd6f5376a93c062218a73a5f1d5f04278a
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=e1acaea4f1a2316ac89dce6c79fca483095bdca2

Log:
Require second parameter of imagecrop()

Changed paths:
  M  ext/gd/gd.c


Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 21aa9e2..49370a7 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -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;
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to