]> granicus.if.org Git - php/commitdiff
Added check for availability of jpeg support.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 11 Dec 2002 22:37:05 +0000 (22:37 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 11 Dec 2002 22:37:05 +0000 (22:37 +0000)
ext/gd/tests/jpeg2png.phpt

index 64315225bd67ba0e0f08e3dff787d21376782253..e345a51abd90018d82930b3b195a38d4c9097b27 100644 (file)
@@ -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--
 <?php