We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f061867 commit c02301bCopy full SHA for c02301b
ext/gd/gd.c
@@ -5363,10 +5363,14 @@ PHP_FUNCTION(imageaffinematrixget)
5363
RETURN_FALSE;
5364
}
5365
if(Z_TYPE_P(options) != IS_DOUBLE) {
5366
- Z_ADDREF_P(options);
5367
- convert_to_double_ex(&options);
+ zval dval;
+ dval = *options;
5368
+ zval_copy_ctor(&dval);
5369
+ convert_to_double(&dval);
5370
+ angle = Z_DVAL(dval);
5371
+ } else {
5372
+ angle = Z_DVAL_P(options);
5373
- angle = Z_DVAL_P(options);
5374
5375
if (type == GD_AFFINE_SHEAR_HORIZONTAL) {
5376
res = gdAffineShearHorizontal(affine, angle);
0 commit comments