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

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.5.13 but running with 1.6.36
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.5.13 but running with 1.6.36
011+
012+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 86
013+
014+ Warning: imagecreatefrompng(): '/usr/local/src/php-7.2.12/ext/gd/tests/bug72913.png' is not a valid PNG file in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 86
015+
016+ Warning: imageistruecolor() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 123
017+
018+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 126
019+
020+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 127
021+
022+ Warning: imagecreatetruecolor(): Invalid image dimensions in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 128
023+
024+ Warning: imagecopy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 129
025+
026+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 88
027+
028+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/php-7.2.12/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.5.13 but running with 1.6.36
031+
032+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct in /usr/local/src/php-7.2.12/ext/gd/tests/func.inc on line 147
033+ ==DONE==
1 (33%)
001+ libpng warning: Application built with libpng-1.2.49 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.49 but running with 1.5.13
011+
012+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 86
013+
014+ Warning: imagecreatefrompng(): '/usr/local/src/src/php-7.2.12/ext/gd/tests/bug72913.png' is not a valid PNG file in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 86
015+
016+ Warning: imageistruecolor() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 123
017+
018+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 126
019+
020+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 127
021+
022+ Warning: imagecreatetruecolor(): Invalid image dimensions in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 128
023+
024+ Warning: imagecopy() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 129
025+
026+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 88
027+
028+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /usr/local/src/src/php-7.2.12/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.49 but running with 1.5.13
031+
032+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct in /usr/local/src/src/php-7.2.12/ext/gd/tests/func.inc on line 147
033+ ==DONE==