From 20bc6a09e0da61a84f38064d5ba6f27508729300 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 22:37:05 +0000 Subject: [PATCH] Added check for availability of jpeg support. --- ext/gd/tests/jpeg2png.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gd/tests/jpeg2png.phpt b/ext/gd/tests/jpeg2png.phpt index 64315225bd..e345a51abd 100644 --- a/ext/gd/tests/jpeg2png.phpt +++ b/ext/gd/tests/jpeg2png.phpt @@ -11,6 +11,9 @@ jpeg <--> png conversion test if (!function_exists("imagecreatefrompng") || !function_exists("imagepng")) { die("skip png support unavailable"); } + if (!function_exists("imagecreatefromjpeg") || !function_exists("imagejpeg")) { + die("skip jpeg support unavailable"); + } ?> --FILE--