Test: /ext/gd/tests/bug75124.phpt - Version 7.3.11        

Bug #75124 gdImageGrayScale() may produce colors
Submitted: 2017-08-27 11:32:57 Modified: 2017-08-27 11:37:47
From: cmb Assigned: cmb
Status: Closed Package: GD related
PHP Version: 7.0.22 OS: *

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

Count Diff
1 (33%)
002+ non grayscale pixel detected
1 (33%)
001+ libpng warning: Application was compiled with png.h from libpng-1.6.34
002+ libpng warning: Application is running with png.c from libpng-1.2.49
001- bool(true)
002- ===DONE===
003+
004+ Warning: imagecreatefrompng(): gd-png: fatal libpng error: Incompatible libpng version in application and library in %s/bug75124.php on line 2
1 (33%)
001+ libpng warning: Application built with libpng-1.6.37 but running with 1.5.13
002+
001- bool(true)
002- ===DONE===
003+ Warning: imagecreatefrompng(): gd-png error: cannot allocate libpng main struct
004+ in %s/bug75124.php on line 2
005+
006+ Warning: imagecreatefrompng(): '/home/demo/Downloads/http_server_install/for_php/php-7.3.11/ext/gd/tests/bug75124.png' is not a valid PNG file in %s/bug75124.php on line 2
007+
008+ Warning: imageistruecolor() expects parameter 1 to be resource, bool given in %s/bug75124.php on line 3
009+ NULL
010+
011+ Warning: imagefilter() expects parameter 1 to be resource, bool given in %s/bug75124.php on line 4
012+
013+ Warning: imagesx() expects parameter 1 to be resource, bool given in %s/bug75124.php on line 5
014+ ===DONE===