diff --git a/ext/gd/tests/bug38212-mb.phpt b/ext/gd/tests/bug38212-mb.phpt index 709cc6c61c5..90aac957c7a 100644 --- a/ext/gd/tests/bug38212-mb.phpt +++ b/ext/gd/tests/bug38212-mb.phpt @@ -2,6 +2,12 @@ Bug #38212 (Seg Fault on invalid imagecreatefromgd2part() parameters) --EXTENSIONS-- gd +--SKIPIF-- +=')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- --EXPECTF-- -gd-png: fatal libpng error: Read Error: truncated data -gd-png error: setjmp returns error condition 2 -Warning: imagecreatefrompng(): v%sbug39780.png" is not a valid PNG file in /%s on line %d +Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on line %d + +Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d + +Warning: imagecreatefrompng(): "%sbug39780.png" is not a valid PNG file in %s on line %d bool(false) diff --git a/ext/gd/tests/bug41442.phpt b/ext/gd/tests/bug41442.phpt index 6ed69f0adda..097b64f464e 100644 --- a/ext/gd/tests/bug41442.phpt +++ b/ext/gd/tests/bug41442.phpt @@ -4,6 +4,10 @@ Bug #41442 (imagegd2() under output control) gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagegd2")) { die("skip GD2 support unavailable"); } diff --git a/ext/gd/tests/bug45799.phpt b/ext/gd/tests/bug45799.phpt index 1678ada41e8..8576b4d0078 100644 --- a/ext/gd/tests/bug45799.phpt +++ b/ext/gd/tests/bug45799.phpt @@ -9,4 +9,4 @@ imagepng($img); imagedestroy($img); ?> --EXPECTF-- -Warning: imagepng(): gd-png error: no colors in palette in %s on line %d +Warning: imagepng(): gd-png error: no colors in palette%win %s on line %d diff --git a/ext/gd/tests/bug66356.phpt b/ext/gd/tests/bug66356.phpt index e15308dc1c1..b65fb54f571 100644 --- a/ext/gd/tests/bug66356.phpt +++ b/ext/gd/tests/bug66356.phpt @@ -38,7 +38,7 @@ Array [height] => 10 ) -Warning: imagecrop(): One parameter to a memory allocation multiplication is negative or zero, failing operation gracefully +Warning: imagecrop(): %cne parameter to a memory allocation multiplication is negative or zero, failing operation gracefully in %s on line %d bool(false) object(GdImage)#2 (0) { @@ -46,6 +46,6 @@ object(GdImage)#2 (0) { object(GdImage)#2 (0) { } -Warning: imagecrop(): Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully +Warning: imagecrop(): %croduct of memory allocation multiplication would exceed INT_MAX, failing operation gracefully in %s on line %d bool(false) diff --git a/ext/gd/tests/bug71912-mb.phpt b/ext/gd/tests/bug71912-mb.phpt index 59e422b8750..43456de365f 100644 --- a/ext/gd/tests/bug71912-mb.phpt +++ b/ext/gd/tests/bug71912-mb.phpt @@ -4,6 +4,14 @@ Bug #71912 (libgd: signedness vulnerability) gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + } if(!function_exists('imagecreatefromgd2')) die('skip imagecreatefromgd2() not available'); ?> --FILE-- diff --git a/ext/gd/tests/bug71912.phpt b/ext/gd/tests/bug71912.phpt index b006cdc3cc4..75e37c8d6a3 100644 --- a/ext/gd/tests/bug71912.phpt +++ b/ext/gd/tests/bug71912.phpt @@ -4,8 +4,13 @@ Bug #71912 (libgd: signedness vulnerability) gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } } if(!function_exists('imagecreatefromgd2')) die('skip imagecreatefromgd2() not available'); ?> diff --git a/ext/gd/tests/bug72339.phpt b/ext/gd/tests/bug72339.phpt index e1c2230babb..561a1b347b5 100644 --- a/ext/gd/tests/bug72339.phpt +++ b/ext/gd/tests/bug72339.phpt @@ -5,8 +5,14 @@ gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } } ?> --FILE-- diff --git a/ext/gd/tests/bug73155.phpt b/ext/gd/tests/bug73155.phpt index 0c77585aa55..a3746484da8 100644 --- a/ext/gd/tests/bug73155.phpt +++ b/ext/gd/tests/bug73155.phpt @@ -2,6 +2,12 @@ Bug #73155 (imagegd2() writes wrong chunk sizes on boundaries) --EXTENSIONS-- gd +--SKIPIF-- +=')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- --EXPECTF-- -Warning: imagescale():%S Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully +Warning: imagescale():%S %croduct of memory allocation multiplication would exceed INT_MAX, failing operation gracefully in %s on line %d bool(false) diff --git a/ext/gd/tests/bug77479.phpt b/ext/gd/tests/bug77479.phpt index 332b2210715..504ff7abca1 100644 --- a/ext/gd/tests/bug77479.phpt +++ b/ext/gd/tests/bug77479.phpt @@ -15,10 +15,10 @@ imagecolorallocate($im, 0, 0, 0); imagewbmp($im, __DIR__ . '/77479.wbmp'); ?> --EXPECTF-- -Warning: imagewbmp():%S Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully +Warning: imagewbmp():%S %croduct of memory allocation multiplication would exceed INT_MAX, failing operation gracefully in %s on line %d -Warning: imagewbmp(): Could not create WBMP in %s on line %d +Warning: imagewbmp(): Could not create WBMP%win %s on line %d --CLEAN-- --EXPECTF-- -Warning: imagecreatefromxbm(): Invalid XBM in %s on line %d +Warning: imagecreatefromxbm(): %cnvalid XBM in %s on line %d Warning: imagecreatefromxbm(): "%s" is not a valid XBM file in %s on line %d bool(false) diff --git a/ext/gd/tests/crafted_gd2.phpt b/ext/gd/tests/crafted_gd2.phpt index 773ce2f2e55..1843498c92b 100644 --- a/ext/gd/tests/crafted_gd2.phpt +++ b/ext/gd/tests/crafted_gd2.phpt @@ -2,6 +2,12 @@ Test max colors for a gd image. --EXTENSIONS-- gd +--SKIPIF-- +=')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- =')) { + die("skip test requires GD 2.3.2 or older"); + } if (!function_exists('imagecreatefromgd2')) die("skip gd extension not available\n"); ?> --FILE-- diff --git a/ext/gd/tests/createfromwbmp2_extern.phpt b/ext/gd/tests/createfromwbmp2_extern.phpt index e3dfcfc7bbd..5cd178cb59e 100644 --- a/ext/gd/tests/createfromwbmp2_extern.phpt +++ b/ext/gd/tests/createfromwbmp2_extern.phpt @@ -43,6 +43,6 @@ $im = imagecreatefromwbmp($filename); unlink($filename); ?> --EXPECTF-- -gd warning: Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully +Warning: imagecreatefromwbmp(): %croduct of memory allocation multiplication would exceed INT_MAX, failing operation gracefully%win %s on line %d Warning: imagecreatefromwbmp(): "%s_tmp.wbmp" is not a valid WBMP file in %s on line %d diff --git a/ext/gd/tests/gif2gd.phpt b/ext/gd/tests/gif2gd.phpt index 79c0c87a479..645041b491d 100644 --- a/ext/gd/tests/gif2gd.phpt +++ b/ext/gd/tests/gif2gd.phpt @@ -4,6 +4,10 @@ gif --> gd1/gd2 conversion test gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagecreatefromgif")) { die("skip gif read support unavailable"); } diff --git a/ext/gd/tests/imagegd_truecolor.phpt b/ext/gd/tests/imagegd_truecolor.phpt index d207485b527..14bb8ce92fa 100644 --- a/ext/gd/tests/imagegd_truecolor.phpt +++ b/ext/gd/tests/imagegd_truecolor.phpt @@ -2,6 +2,12 @@ imagegd() writes truecolor images without palette conversion --EXTENSIONS-- gd +--SKIPIF-- +=')) { + die("skip test requires GD 2.3.2 or older"); + } +?> --FILE-- gd1/gd2 conversion test gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagecreatefromjpeg") || !function_exists("imagejpeg")) { die("skip jpeg support unavailable"); } diff --git a/ext/gd/tests/jpg2gd.phpt b/ext/gd/tests/jpg2gd.phpt index ec99d4c8d0d..447685c3201 100644 --- a/ext/gd/tests/jpg2gd.phpt +++ b/ext/gd/tests/jpg2gd.phpt @@ -4,6 +4,10 @@ jpeg <--> gd1/gd2 conversion test gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagecreatefromjpeg") || !function_exists("imagejpeg")) { die("skip jpeg support unavailable"); } diff --git a/ext/gd/tests/libgd00086_extern.phpt b/ext/gd/tests/libgd00086_extern.phpt index 707b910f8c1..8d2b0b7d8db 100644 --- a/ext/gd/tests/libgd00086_extern.phpt +++ b/ext/gd/tests/libgd00086_extern.phpt @@ -13,8 +13,9 @@ $im = imagecreatefrompng(__DIR__ . '/libgd00086.png'); var_dump($im); ?> --EXPECTF-- -gd-png: fatal libpng error: Read Error: truncated data -gd-png error: setjmp returns error condition 1 +Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on line %d + +Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d Warning: imagecreatefrompng(): "%slibgd00086.png" is not a valid PNG file in %s on line %d bool(false) diff --git a/ext/gd/tests/png2gd.phpt b/ext/gd/tests/png2gd.phpt index e2e0a57b9bf..34e9d277831 100644 --- a/ext/gd/tests/png2gd.phpt +++ b/ext/gd/tests/png2gd.phpt @@ -4,6 +4,10 @@ png <--> gd1/gd2 conversion test gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagecreatefrompng") || !function_exists("imagepng")) { die("skip png support unavailable"); } diff --git a/ext/gd/tests/xpm2gd.phpt b/ext/gd/tests/xpm2gd.phpt index ce9852cd62d..f415d47f5ee 100644 --- a/ext/gd/tests/xpm2gd.phpt +++ b/ext/gd/tests/xpm2gd.phpt @@ -4,6 +4,10 @@ xpm --> gd1/gd2 conversion test gd --SKIPIF-- =')) { + die("skip test requires GD 2.3.2 or older"); + } + if (!function_exists("imagecreatefromxpm")) { die("skip xpm read support unavailable"); }