From e1acaea4f1a2316ac89dce6c79fca483095bdca2 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 15 May 2013 12:40:49 -0700 Subject: [PATCH] Require second parameter of imagecrop() --- ext/gd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1