From: Jakub Vrana Date: Wed, 15 May 2013 19:40:49 +0000 (-0700) Subject: Require second parameter of imagecrop() X-Git-Tag: php-5.5.2RC1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1acaea4f1a2316ac89dce6c79fca483095bdca2;p=php Require second parameter of imagecrop() --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 21aa9e2727..49370a75d2 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; }