summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorJakub Vrana <jakub@vrana.cz>2013-05-15 12:40:49 -0700
committerStanislav Malyshev <stas@php.net>2013-06-23 20:29:54 -0700
commite1acaea4f1a2316ac89dce6c79fca483095bdca2 (patch)
treede3bacb6bbeafa8782380957fdb9f2f253fcd3d4 /ext/gd
parent1beb24bd6f5376a93c062218a73a5f1d5f04278a (diff)
downloadphp-git-e1acaea4f1a2316ac89dce6c79fca483095bdca2.tar.gz
Require second parameter of imagecrop()
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
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;
}