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

Bug #66005 imagecopy does not support 1bit transparency on truecolor images
Submitted: 2013-10-30 18:41:32 Modified: 2016-08-21 13:34:24
From: andreas.ringlstetter Assigned: cmb
Status: Closed Package: GD related
PHP Version: 5.5.5 OS: Linux 3.11.6-1-ARCH x86_64

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/bug66005.php on line 9
005+
006+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 9
007+
008+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 9
009+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
010+
011+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct
012+ in %s/bug66005.php on line 12
013+
014+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 12
015+
016+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 12
017+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
018+
019+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct
020+ in %s/bug66005.php on line 15
021+
022+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 15
023+
024+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 15
025+
026+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 17
027+
028+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 18
029+
030+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 19
031+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
032+
033+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct
034+ in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 86
035+
036+ Warning: imagecreatefrompng(): '/usr/local/src/php-7.2.19/ext/gd/tests/bug66005.png' is not a valid PNG file in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 86
037+
038+ 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
039+
040+ 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
041+
042+ 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
043+
044+ Warning: imagecreatetruecolor(): Invalid image dimensions in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 128
045+
046+ 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
047+
048+ 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
049+
050+ 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
051+ The image size differs: expected x, got 150x50.
052+ libpng warning: Application built with libpng-1.6.40 but running with 1.5.13
053+
054+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct
055+ in /usr/local/src/php-7.2.19/ext/gd/tests/func.inc on line 147
056+ ==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/bug66005.php on line 9
004+
005+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 9
006+
007+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 9
008+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
009+
010+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct in %s/bug66005.php on line 12
011+
012+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 12
013+
014+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 12
015+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
016+
017+ Warning: imagecreatefromstring(): gd-png error: cannot allocate libpng main struct in %s/bug66005.php on line 15
018+
019+ Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in %s/bug66005.php on line 15
020+
021+ Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in %s/bug66005.php on line 15
022+
023+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 17
024+
025+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 18
026+
027+ Warning: imagecopy() expects parameter 2 to be resource, boolean given in %s/bug66005.php on line 19
028+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
029+
030+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct in /home/php-7.2.19/ext/gd/tests/func.inc on line 86
031+
032+ Warning: imagecreatefrompng(): '/home/php-7.2.19/ext/gd/tests/bug66005.png' is not a valid PNG file in /home/php-7.2.19/ext/gd/tests/func.inc on line 86
033+
034+ Warning: imageistruecolor() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 123
035+
036+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 126
037+
038+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 127
039+
040+ Warning: imagecreatetruecolor(): Invalid image dimensions in /home/php-7.2.19/ext/gd/tests/func.inc on line 128
041+
042+ Warning: imagecopy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 129
043+
044+ Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 88
045+
046+ Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/php-7.2.19/ext/gd/tests/func.inc on line 89
047+ The image size differs: expected x, got 150x50.
048+ libpng warning: Application built with libpng-1.2.50 but running with 1.5.13
049+
050+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct in /home/php-7.2.19/ext/gd/tests/func.inc on line 147
051+ ==DONE==