Test: /ext/gd/tests/bug72913.phpt - Version 7.0.30        

Bug #72913 imagecopy() loses single-color transparency on palette images
Submitted: 2016-08-21 15:26:28 Modified: 2016-08-21 15:26:41
From: cmb Assigned: cmb
Status: Closed Package: GD related
PHP Version: 7.0.10 OS: *

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Warning: imagecreatefromstring(): No PNG support in this PHP build in %s/bug72913.php on line 6
002+
001- The images are equal.
002- ==DONE==
003+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug72913.php on line 13
004+
005+ Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in /root/php-7.0.30/ext/gd/tests/func.inc:86
006+ Stack trace:
007+ #0 %s/bug72913.php(16): test_image_equals_file('/root/php-7.0.3...', Resource id #6)
008+ #1 {main}
009+ thrown in /root/php-7.0.30/ext/gd/tests/func.inc on line 86
1 (50%)
001+ Warning: imagecreatefromstring(): No PNG support in this PHP build in %s/bug72913.php on line 6
002+
001- The images are equal.
002- ==DONE==
003+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug72913.php on line 13
004+
005+ Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in /home/goufei/omc/php-7.0.30/ext/gd/tests/func.inc:86
006+ Stack trace:
007+ #0 %s/bug72913.php(16): test_image_equals_file('/home/goufei/om...', Resource id #6)
008+ #1 {main}
009+ thrown in /home/goufei/omc/php-7.0.30/ext/gd/tests/func.inc on line 86