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

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
2 (67%)
001+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
002+
001- The images are equal.
002- ==DONE==
003+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct
004+ in %s/bug72913.php on line 6
005+
006+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug72913.php on line 6
007+
008+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug72913.php on line 6
009+
010+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug72913.php on line 13
011+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
012+
013+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct
014+ in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 86
015+
016+ Warning: imagecreatefrompng(): '/usr/local/src/php-7.2.19/ext/gd/tests/bug72913.png' is not a valid PNG file in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 86
017+
018+ Warning: imageistruecolor() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 123
019+
020+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 126
021+
022+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 127
023+
024+ Warning: imagecreatetruecolor(): Invalid image dimensions in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 128
025+
026+ Warning: imagecopy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 129
027+
028+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 88
029+
030+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 89
031+ The image size differs: expected x, got 50x50.
032+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
033+
034+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct
035+ in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 147
036+ ==DONE==
1 (33%)
001+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
002+
001- The images are equal.
002- ==DONE==
003+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct in %s/bug72913.php on line 6
004+
005+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug72913.php on line 6
006+
007+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug72913.php on line 6
008+
009+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug72913.php on line 13
010+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
011+
012+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct in /home/php-7.2.19/ext/gd/tests/func.inc on line 86
013+
014+ Warning: imagecreatefrompng(): '/home/php-7.2.19/ext/gd/tests/bug72913.png' is not a valid PNG file in /home/php-7.2.19/ext/gd/tests/func.inc on line 86
015+
016+ Warning: imageistruecolor() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 123
017+
018+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 126
019+
020+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 127
021+
022+ Warning: imagecreatetruecolor(): Invalid image dimensions in /home/php-7.2.19/ext/gd/tests/func.inc on line 128
023+
024+ Warning: imagecopy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 129
025+
026+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 88
027+
028+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 89
029+ The image size differs: expected x, got 50x50.
030+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
031+
032+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct in /home/php-7.2.19/ext/gd/tests/func.inc on line 147
033+ ==DONE==