com php-src: Require second parameter of imagecrop(): ext/gd/gd.c

From: Date: Mon, 24 Jun 2013 03:29:54 +0000
Subject: com php-src: Require second parameter of imagecrop(): ext/gd/gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-72462@lists.php.net to get a copy of this message
Commit: e1acaea4f1a2316ac89dce6c79fca483095bdca2 Author: Jakub Vrana <jakub@vrana.cz> Wed, 15 May 2013 12:40:49 -0700 Committer: Stanislav Malyshev <stas@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; }

« previous php.cvs (#72462) next »