summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-09-25 10:30:48 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-09-25 10:34:03 +0200
commitc696bc8cfac64a66bb69dffe96d312a621fcdab7 (patch)
tree5cf87334b08fb64434e003aa83e68fde288f4ed6 /main/php_variables.c
parentc596b02a5b451ad95987f7a8c86b0ba313efa5a8 (diff)
downloadphp-git-c696bc8cfac64a66bb69dffe96d312a621fcdab7.tar.gz
Fix test_image_equals_file() wrt. palette images
The recently introduced test_image_equals_file() doesn't properly work for palette images, because in this case only the palette indexes are compared, what can lead to false positives and negatives as shown in the added test. To fix that we convert palette images to truecolor, what is supposed to be faster than calling imagecolorsforindex() for each pixel. We furthermore rely on PHP's refcounting to free unused images; after all, this is not C.
Diffstat (limited to 'main/php_variables.c')
0 files changed, 0 insertions, 0 deletions