@@ -3881,7 +3881,7 @@ PHP_FUNCTION(imagecrop)
3881
3881
3882
3882
im = php_gd_libgdimageptr_from_zval_p (IM );
3883
3883
3884
- if ((tmp = zend_hash_str_find (Z_ARRVAL_P (z_rect ), "x" , sizeof ("x" ) - 1 )) != NULL ) {
3884
+ if ((tmp = zend_hash_str_find_deref (Z_ARRVAL_P (z_rect ), "x" , sizeof ("x" ) - 1 )) != NULL ) {
3885
3885
if (!php_gd_zval_try_get_c_int (tmp , "x" , & rect .x )) {
3886
3886
RETURN_THROWS ();
3887
3887
}
@@ -3890,7 +3890,7 @@ PHP_FUNCTION(imagecrop)
3890
3890
RETURN_THROWS ();
3891
3891
}
3892
3892
3893
- if ((tmp = zend_hash_str_find (Z_ARRVAL_P (z_rect ), "y" , sizeof ("y" ) - 1 )) != NULL ) {
3893
+ if ((tmp = zend_hash_str_find_deref (Z_ARRVAL_P (z_rect ), "y" , sizeof ("y" ) - 1 )) != NULL ) {
3894
3894
if (!php_gd_zval_try_get_c_int (tmp , "y" , & rect .y )) {
3895
3895
RETURN_THROWS ();
3896
3896
}
@@ -3899,7 +3899,7 @@ PHP_FUNCTION(imagecrop)
3899
3899
RETURN_THROWS ();
3900
3900
}
3901
3901
3902
- if ((tmp = zend_hash_str_find (Z_ARRVAL_P (z_rect ), "width" , sizeof ("width" ) - 1 )) != NULL ) {
3902
+ if ((tmp = zend_hash_str_find_deref (Z_ARRVAL_P (z_rect ), "width" , sizeof ("width" ) - 1 )) != NULL ) {
3903
3903
if (!php_gd_zval_try_get_c_int (tmp , "width" , & rect .width )) {
3904
3904
RETURN_THROWS ();
3905
3905
}
@@ -3908,7 +3908,7 @@ PHP_FUNCTION(imagecrop)
3908
3908
RETURN_THROWS ();
3909
3909
}
3910
3910
3911
- if ((tmp = zend_hash_str_find (Z_ARRVAL_P (z_rect ), "height" , sizeof ("height" ) - 1 )) != NULL ) {
3911
+ if ((tmp = zend_hash_str_find_deref (Z_ARRVAL_P (z_rect ), "height" , sizeof ("height" ) - 1 )) != NULL ) {
3912
3912
if (!php_gd_zval_try_get_c_int (tmp , "height" , & rect .height )) {
3913
3913
RETURN_THROWS ();
3914
3914
}
0 commit comments