diff --git a/ext/gd/gd.c b/ext/gd/gd.c index d3ba25e706a..802b3d3a252 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -5582,7 +5582,7 @@ PHP_FUNCTION(imageaffinematrixget) RETURN_FALSE; } - if (res = GD_FALSE) { + if (res == GD_FALSE) { RETURN_FALSE; } else { array_init(return_value);