summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Daily <brad@bradleyboy.com>2014-02-19 15:24:15 -0600
committerBrad Daily <brad@bradleyboy.com>2014-02-19 15:24:15 -0600
commit143bb29c1ac3f959f44b8fe59adef4d1840bc393 (patch)
tree18a28be8a484a44bbb4c2cccbb759f026c8932d7
parenta7d36066507b8d43c4a63bb60ba3ec1de3b68aaf (diff)
downloadphp-git-143bb29c1ac3f959f44b8fe59adef4d1840bc393.tar.gz
Fixes #66714: imageconvolution breakage in 5.5.9
5.5.9 included some GD fixes related to #66356. One of those fixes changed the above section of imageconvolution, but the variable was mistyped.
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ab4ab2df56..0c4a0b36ff 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -4879,7 +4879,7 @@ PHP_FUNCTION(imageconvolution)
if (zend_hash_index_find(Z_ARRVAL_PP(var), (j), (void **) &var2) == SUCCESS) {
if (Z_TYPE_PP(var2) != IS_DOUBLE) {
zval dval;
- dval = **var;
+ dval = **var2;
zval_copy_ctor(&dval);
convert_to_double(&dval);
matrix[i][j] = (float)Z_DVAL(dval);