From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 22:37:05 +0000 (+0000) Subject: Added check for availability of jpeg support. X-Git-Tag: RELEASE_1_0b3~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20bc6a09e0da61a84f38064d5ba6f27508729300;p=php Added check for availability of jpeg support. --- 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--