diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-11 22:37:05 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-11 22:37:05 +0000 |
commit | 20bc6a09e0da61a84f38064d5ba6f27508729300 (patch) | |
tree | 9faaba732bc40f330a46a4d9562c0adc24d9170c | |
parent | 67aca57c3bceef935c3006821c1dd9cdacad496b (diff) | |
download | php-git-20bc6a09e0da61a84f38064d5ba6f27508729300.tar.gz |
Added check for availability of jpeg support.
-rw-r--r-- | ext/gd/tests/jpeg2png.phpt | 3 |
1 files changed, 3 insertions, 0 deletions
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-- <?php |