mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Require second parameter of imagecrop()
This commit is contained in:
parent
1beb24bd6f
commit
e1acaea4f1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user