From 75f93ed663ce9b7e1f8742b6840505884a143682 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 4 Jan 2015 19:45:57 -0800 Subject: [PATCH] fix GD tests with no GD loaded --- ext/gd/tests/bug67248.phpt | 2 +- ext/gd/tests/imagegd2_nullbyte_injection.phpt | 4 ++++ ext/gd/tests/imagegd_nullbyte_injection.phpt | 4 ++++ ext/gd/tests/imagegif_nullbyte_injection.phpt | 1 + ext/gd/tests/imagejpeg_nullbyte_injection.phpt | 1 + ext/gd/tests/imagepng_nullbyte_injection.phpt | 1 + ext/gd/tests/imagewbmp_nullbyte_injection.phpt | 1 + ext/gd/tests/imagewebp_nullbyte_injection.phpt | 1 + 8 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ext/gd/tests/bug67248.phpt b/ext/gd/tests/bug67248.phpt index 9c83966a60..5cae5f8c98 100644 --- a/ext/gd/tests/bug67248.phpt +++ b/ext/gd/tests/bug67248.phpt @@ -2,7 +2,7 @@ Bug #67248 (imageaffinematrixget missing check of parameters) --SKIPIF-- --FILE-- diff --git a/ext/gd/tests/imagegd2_nullbyte_injection.phpt b/ext/gd/tests/imagegd2_nullbyte_injection.phpt index 49affefb96..278a4a8023 100644 --- a/ext/gd/tests/imagegd2_nullbyte_injection.phpt +++ b/ext/gd/tests/imagegd2_nullbyte_injection.phpt @@ -1,5 +1,9 @@ --TEST-- Testing null byte injection in imagegd2 +--SKIPIF-- + --CLEAN-- $tempdir = sys_get_temp_dir(). '/php-gdtest'; foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } diff --git a/ext/gd/tests/imagegd_nullbyte_injection.phpt b/ext/gd/tests/imagegd_nullbyte_injection.phpt index a423a551fd..1ef9354919 100644 --- a/ext/gd/tests/imagegd_nullbyte_injection.phpt +++ b/ext/gd/tests/imagegd_nullbyte_injection.phpt @@ -1,5 +1,9 @@ --TEST-- Testing null byte injection in imagegd +--SKIPIF-- + --CLEAN-- $tempdir = sys_get_temp_dir(). '/php-gdtest'; foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } diff --git a/ext/gd/tests/imagegif_nullbyte_injection.phpt b/ext/gd/tests/imagegif_nullbyte_injection.phpt index c3d0c30175..44b1be144f 100644 --- a/ext/gd/tests/imagegif_nullbyte_injection.phpt +++ b/ext/gd/tests/imagegif_nullbyte_injection.phpt @@ -6,6 +6,7 @@ foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } rmdir($tempdir); --SKIPIF--