diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-11 18:40:46 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-11 18:40:46 +0200 |
commit | c911aa9def5bcd0f25824f8479a8df2d58bd0d85 (patch) | |
tree | c4d9c36c13c78a589b0ba9adf571b8ea6cc501f8 | |
parent | 29cb3c89e50376f254e6a63cf76ac96dd309b366 (diff) | |
parent | 225478bccfb916adc18e5a363171d300c67670e6 (diff) | |
download | php-git-c911aa9def5bcd0f25824f8479a8df2d58bd0d85.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
-rw-r--r-- | ext/gd/tests/bug67447.phpt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/gd/tests/bug67447.phpt b/ext/gd/tests/bug67447.phpt index 878b322689..c17454433d 100644 --- a/ext/gd/tests/bug67447.phpt +++ b/ext/gd/tests/bug67447.phpt @@ -23,10 +23,19 @@ imagecolorallocate($image, 0, 0, 255); // first palette color = background $red = imagecolorallocate($image, 255, 0, 0); imagefill($image, 0, 0, $red); $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]); -var_dump(imagecolorat($cropped, 249, 249) === $red); +var_dump(imagecolorsforindex($cropped, imagecolorat($cropped, 249, 249))); imagedestroy($image); imagedestroy($cropped); ?> --EXPECT-- bool(true) -bool(true) +array(4) { + ["red"]=> + int(255) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} |