mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
- fix #66869, Invalid 2nd argument crashes imageaffinematrixget
This commit is contained in:
@@ -5298,6 +5298,7 @@ PHP_FUNCTION(imageaffinematrixget)
|
||||
double x, y;
|
||||
if (Z_TYPE_P(options) != IS_ARRAY) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Array expected as options");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if (zend_hash_find(HASH_OF(options), "x", sizeof("x"), (void **)&tmp) != FAILURE) {
|
||||
if (Z_TYPE_PP(tmp) != IS_DOUBLE) {
|
||||
|
||||
Reference in New Issue
Block a user