Require second parameter of imagecrop()

This commit is contained in:
Jakub Vrana 2013-05-15 12:40:49 -07:00 committed by Stanislav Malyshev
parent 1beb24bd6f
commit e1acaea4f1

View File

@ -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;
}