]> granicus.if.org Git - php/commitdiff
- enable tests even when an external GD is used. Latest releases
authorPierre Joye <pajoye@php.net>
Mon, 28 May 2007 17:57:20 +0000 (17:57 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 28 May 2007 17:57:20 +0000 (17:57 +0000)
  (2.0.34 or 2.0.35) work.
  NB: if you use Debian, you'll realize how bad their package is and start
  to either use the source or push all patches I posted to their bugs
  tracker

35 files changed:
ext/gd/tests/bug19366.phpt
ext/gd/tests/bug22544.phpt
ext/gd/tests/bug24155.phpt
ext/gd/tests/bug24594.phpt
ext/gd/tests/bug27582_1.phpt
ext/gd/tests/bug28147.phpt
ext/gd/tests/bug36697.phpt
ext/gd/tests/bug37346.phpt
ext/gd/tests/bug37360.phpt
ext/gd/tests/bug38112.phpt
ext/gd/tests/bug39082.phpt
ext/gd/tests/bug39273.phpt
ext/gd/tests/bug39286.phpt
ext/gd/tests/bug39366.phpt
ext/gd/tests/bug39508.phpt
ext/gd/tests/bug39780.phpt
ext/gd/tests/bug39780_extern.phpt [new file with mode: 0644]
ext/gd/tests/createfromgd2.phpt
ext/gd/tests/createfromwbmp.phpt
ext/gd/tests/createfromwbmp2_extern.phpt [new file with mode: 0644]
ext/gd/tests/dashedlines.phpt
ext/gd/tests/gif2gd.phpt
ext/gd/tests/gif2jpg.phpt
ext/gd/tests/gif2png.phpt
ext/gd/tests/imagefilter.phpt
ext/gd/tests/imagewbmp.phpt
ext/gd/tests/jpeg2png.phpt
ext/gd/tests/jpg2gd.phpt
ext/gd/tests/libgd00086.phpt
ext/gd/tests/libgd00086_extern.phpt [new file with mode: 0644]
ext/gd/tests/png2gd.phpt
ext/gd/tests/pngcomp.phpt
ext/gd/tests/xpm2gd.phpt
ext/gd/tests/xpm2jpg.phpt
ext/gd/tests/xpm2png.phpt

index c83d816c15b20cabc1944d58632529574e9c133e..0ae588eb2e0641e69c7c6f95015920e556c4a247 100644 (file)
@@ -3,7 +3,6 @@ Bug #19366 (gdimagefill() function crashes (fixed in bundled libgd))
 --SKIPIF--
 <?php 
        if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
 ?>
 --FILE--
 <?php
index 3c21f0b3c97b475eef7afc604441842dc749a6c1..dd3d663a7dadd6f3086095580b40706380174e6d 100644 (file)
@@ -5,9 +5,6 @@ Bug #22544 (TrueColor transparency in PNG images).
        if (!extension_loaded('gd')) {  
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
 ?>
 --FILE--
 <?php
index a7cf9ef73a8b22971736e707bb0e5900ca2249d2..43d34b7177babb5f477be6f4b696e8256a35e44f 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 Bug #24155 (gdImageRotate270 rotation problem).
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) {  
+<?php
+       if (!extension_loaded('gd')) {
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
+       if (!function_exists("imagerotate")) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
@@ -15,7 +13,7 @@ Bug #24155 (gdImageRotate270 rotation problem).
        @unlink($dest);
 
        $im = imagecreatetruecolor(30, 50);
-       imagefill($im, 0, 0, (16777215 - 255)); 
+       imagefill($im, 0, 0, (16777215 - 255));
        $im = imagerotate($im, 270, 255);
        imagepng($im, $dest);
 
index e7b9a653f2af916e665d3170268449f26f023c1e..79bae5ecc97a30a91bf187bcb426964ba502b686 100644 (file)
@@ -5,9 +5,6 @@ Bug #24594 (Filling an area using tiles).
        if (!extension_loaded('gd')) {
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
 ?>
 --FILE--
 <?php
index b85f7457e01b89c151cbd7aa0cd728934f069b47..28db15a74f5c1f7b6b41462bc0074f5bc93431f7 100644 (file)
@@ -3,7 +3,6 @@ Bug #27582 (ImageFillToBorder() on alphablending image looses alpha on fill colo
 --SKIPIF--
 <?php
         if (!extension_loaded('gd')) die("skip gd extension not available\n");
-        if (!GD_BUNDLED) die('skip external GD libraries always fail');
 ?>
 --FILE--
 <?php
index b3551a63933394aa601856daacd37225143f513f..55490651b4cdb4266403e2e08b692932ce0f0847 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 Bug #28147 (Crash with anti-aliased line)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (!function_exists("imageantialias")) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
index b257f63e255949a75ffd4584052c276bb2494217..9335e5f58d4fa8858cf52582dcc8411ae3d6fbfd 100644 (file)
@@ -1,13 +1,10 @@
 --TEST--
 Bug #36697 (TrueColor transparency with GIF palette output).
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) {  
+<?php
+       if (!extension_loaded('gd')) {
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
 ?>
 --FILE--
 <?php
index 859518e1fd4c784ffeb2e4fc7ab47406a79f708d..36d9c0a04a2927f901586c332d1fc53136f80b6c 100644 (file)
@@ -1,9 +1,8 @@
 --TEST--
 Bug #37346 (gdimagecreatefromgif, bad colormap)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
 ?>
 --FILE--
 <?php
index 4b377ade8edfd507f2c60415bf3727bafa71f5c1..44bbd96b8822f1acb006c7107f92cfd317356fd7 100644 (file)
@@ -1,9 +1,8 @@
 --TEST--
 Bug #37360 (gdimagecreatefromgif, bad image sizes)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
 ?>
 --FILE--
 <?php
index 6c522712484e383e22156700fdfdd13563c15b92..0e4b8afd3f53121829aeea7dd13c8c6d97f6b7ba 100644 (file)
@@ -1,13 +1,10 @@
 --TEST--
 Bug #38112 (GIF Invalid Code size ).
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) {  
+<?php
+       if (!extension_loaded('gd')) {
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
 ?>
 --FILE--
 <?php
index 9bbfdb2e38021f155c62e0d7fd6be3ff360d50bb..9bd6f5edc4e3591b1472eb292f2d545e16cb7bb5 100644 (file)
@@ -1,13 +1,10 @@
 --TEST--
 Bug #39082 (Output image to stdout segfaults).
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) {  
+<?php
+       if (!extension_loaded('gd')) {
                die("skip gd extension not available\n");
        }
-       if (!GD_BUNDLED) {
-               die('skip external GD libraries may fail');
-       }
 ?>
 --FILE--
 <?php
index 438450044756605ada1b3e13506da2d9f192cb44..9867b7469a845b4093a848a80b14e8e92a86defc 100644 (file)
@@ -1,9 +1,8 @@
 --TEST--
 Bug #37360 (gdimagecreatefromgif, bad image sizes)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
 ?>
 --FILE--
 <?php
index 3f2a178125c6e1881dc5a3a6025b4a8aa0e09115..9171fb7f06f91f9ce19becf599f84124021d65d1 100644 (file)
@@ -1,9 +1,8 @@
 --TEST--
 Bug #39508 (imagefill crashes with small images 3 pixels or less)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
 ?>
 --FILE--
 <?php
index 212012a1bd4c3ebd0e62d003fd6d18ba730b303c..f80564565da8da434d26b804d04401f2416884e0 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 Bug #39366 (imagerotate does not respect alpha with angles>45)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (!function_exists("imagerotate")) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
index 9e86efc20773a81918fedac5987582fd0307b121..791c59c2301ceb2dc2ed25f78e02a124d7420d63 100644 (file)
@@ -1,9 +1,8 @@
 --TEST--
 Bug #39508 (imagefill crashes with small images 3 pixels or less)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
 ?>
 --FILE--
 <?php
index 6fa4cc47960503d5821deb407aa584be4fee8978..964cf6953bc8930ae316f5b77a5cd094ad00652f 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 Bug #39780 (PNG image with CRC/data error raises a fatal error)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (!GD_BUNDLED) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
@@ -12,6 +12,7 @@ $im = imagecreatefrompng(dirname(__FILE__) . '/bug39780.png');
 var_dump($im);
 ?>
 --EXPECTF--
+
 Warning: imagecreatefrompng(): gd-png:  fatal libpng error: Read Error: truncated data in %s on line %d
 
 Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in %s on line %d
diff --git a/ext/gd/tests/bug39780_extern.phpt b/ext/gd/tests/bug39780_extern.phpt
new file mode 100644 (file)
index 0000000..79ed4f2
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #39780 (PNG image with CRC/data error raises a fatal error)
+--SKIPIF--
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (GD_BUNDLED) die("skip requires extern GD\n");
+?>
+--FILE--
+<?php
+
+$im = imagecreatefrompng(dirname(__FILE__) . '/bug39780.png');
+var_dump($im);
+?>
+--EXPECTF--
+gd-png:  fatal libpng error: Read Error: truncated data
+gd-png error: setjmp returns error condition 2
+Warning: imagecreatefrompng(): '%sbug39780.png' is not a valid PNG file in /%s on line %d
+bool(false)
\ No newline at end of file
index 98b078ea5916ead35841d4617e61198741a44bf0..e43d1b865bb7353b039c7764a160395baf46f713 100644 (file)
@@ -3,7 +3,6 @@ imagecreatefromgd2
 --SKIPIF--
 <?php
         if (!function_exists('imagecreatefromgd2')) die("skip gd extension not available\n");
-        if (!GD_BUNDLED) die('skip external GD libraries always fail');
 ?>
 --FILE--
 <?php
index 5e48f235e0e6a3362d34f433706cbbaa9c8f725a..589bbaf855c287382f111b7000d9e66f5a24a8c9 100644 (file)
@@ -3,7 +3,6 @@ imagecreatefromwbmp
 --SKIPIF--
 <?php
         if (!function_exists('imagecreatefromwbmp')) die("skip gd extension not available\n");
-        if (!GD_BUNDLED) die('skip external GD libraries always fail');
 ?>
 --FILE--
 <?php
diff --git a/ext/gd/tests/createfromwbmp2_extern.phpt b/ext/gd/tests/createfromwbmp2_extern.phpt
new file mode 100644 (file)
index 0000000..7be46f7
--- /dev/null
@@ -0,0 +1,47 @@
+--TEST--
+imagecreatefromwbmp with invalid wbmp
+--SKIPIF--
+<?php
+       if (!function_exists('imagecreatefromwbmp')) die("skip gd extension not available\n");
+       if (GD_BUNDLED) die("skip requires extern GD\n");
+?>
+--FILE--
+<?php
+$filename = dirname(__FILE__) . '/_tmp.wbmp';
+$fp = fopen($filename,"wb");
+if (!$fp) {
+       exit("Failed to create <$filename>");
+}
+
+//write header
+$c = 0;
+fputs($fp, chr($c), 1);
+fputs($fp, $c, 1);
+
+//write width = 2^32 / 4 + 1
+$c = 0x84;
+fputs($fp, chr($c), 1);
+$c = 0x80;
+fputs($fp, chr($c), 1);
+fputs($fp, chr($c), 1);
+fputs($fp, chr($c), 1);
+$c = 0x01;
+fputs($fp, chr($c), 1);
+
+/*write height = 4*/
+$c = 0x04;
+fputs($fp, chr($c), 1);
+
+/*write some data to cause overflow*/
+for ($i=0; $i<10000; $i++) {
+       fwrite($fp, chr($c), 1);
+}
+
+fclose($fp);
+$im = imagecreatefromwbmp($filename);
+unlink($filename);
+?>
+--EXPECTF--
+gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
+
+Warning: imagecreatefromwbmp(): '%s_tmp.wbmp' is not a valid WBMP file in %s on line %d
index 4fa3795cb2f85b3cbc6717355f687ff2fa98029e..7c13084157372d144be322a1b1275aa19ca77a73 100644 (file)
@@ -30,7 +30,6 @@ if ($p1 && $p2 && $p3 && $p4 && $p5) {
 }
 imagedestroy($im);
 
-
 $im = imagecreatetruecolor(6,6);
 imagefill($im, 0,0, 0xffffff);
 
index 75291777d8b50c0d547d2b2cc9f17e62122bd1ae..3972758dfb0e7b7e7fa6ca3f1d8f55a81905f7a5 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 gif --> gd1/gd2 conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefromgif")) {
                die("skip gif read support unavailable");
        }
index efea3525cfe9b675da2da0c6a1ac0132b0a3d0a7..0cfe025628bf87fc2829821a50e7e6155cba19ba 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 gif --> jpeg conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }
+
        if (!function_exists("imagejpeg")) {
                die("skip jpeg support unavailable");
        }
index 6ac99bb22fa4675df9ca3f8ea51740b1740f5ced..d3946021f68e6530feb1ee7228c06db81c8dad9d 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 gif --> png conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }
+
        if (!function_exists("imagepng")) {
                die("skip png support unavailable");
        }
index 9857b53a00789f61886b0654febf90a576ab9c28..5da5a662279e3fdb241152b3da33ed41e94f902b 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 imagefilter() function test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip this test requires bundled gd library.");
-       }
+       if (!function_exists("imagefilter")) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
@@ -15,7 +13,7 @@ $no_arg_filters = array(
        "IMG_FILTER_NEGATE",
        "IMG_FILTER_GRAYSCALE",
        "IMG_FILTER_EDGEDETECT",
-       "IMG_FILTER_GAUSSIAN_BLUR", 
+       "IMG_FILTER_GAUSSIAN_BLUR",
        "IMG_FILTER_SELECTIVE_BLUR",
        "IMG_FILTER_EMBOSS",
        "IMG_FILTER_MEAN_REMOVAL"
@@ -33,7 +31,7 @@ $SOURCE_IMG = $SAVE_DIR . "/test.png";
                } else {
                        echo "$filt failed\n";
                }
-       } 
+       }
 
        $im = imagecreatefrompng($SOURCE_IMG);
        
index cea464e759ac68ec9df22d003fbf3ac6b00814cb..a10dbdb5f7696c4f340e873a260a14ad575711cb 100644 (file)
@@ -3,7 +3,6 @@ imagewbmp
 --SKIPIF--
 <?php
         if (!function_exists('imagecreatefromwbmp')) die("skip gd extension not available\n");
-        if (!GD_BUNDLED) die('skip external GD libraries always fail');
 ?>
 --FILE--
 <?php
index c86cb4fe4a8a247d18941548e871a3b09518bb36..ae5c26b470de071ee31168adecad987013ba511f 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 jpeg <--> png conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefrompng") || !function_exists("imagepng")) {
                die("skip png support unavailable");
        }
index 24d1940faf3c0cb6c80db1d9cec595b8550d1fe9..47ca5b61980c056cb00b3c58456df035936aec15 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 jpeg <--> gd1/gd2 conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefromjpeg") || !function_exists("imagejpeg")) {
                die("skip jpeg support unavailable");
        }
index 60f28107c8a4078d5da1886f2742411317929306..4c909343cadd486f3da7af61147b414e31eaa314 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 libgd #86 (Possible infinite loop in imagecreatefrompng)
 --SKIPIF--
-<?php 
-       if (!extension_loaded('gd')) die("skip gd extension not available\n"); 
-       if (!GD_BUNDLED) die('skip external GD libraries always fail');
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (!GD_BUNDLED) die("skip requires bundled GD library\n");
 ?>
 --FILE--
 <?php
diff --git a/ext/gd/tests/libgd00086_extern.phpt b/ext/gd/tests/libgd00086_extern.phpt
new file mode 100644 (file)
index 0000000..0c8d180
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+libgd #86 (Possible infinite loop in imagecreatefrompng)
+--SKIPIF--
+<?php
+       if (!extension_loaded('gd')) die("skip gd extension not available\n");
+       if (GD_BUNDLED) die("skip requires external GD library\n");
+?>
+--FILE--
+<?php
+
+$im = imagecreatefrompng(dirname(__FILE__) . '/libgd00086.png');
+var_dump($im);
+?>
+--EXPECTF--
+gd-png:  fatal libpng error: Read Error: truncated data
+gd-png error: setjmp returns error condition 1
+
+Warning: imagecreatefrompng(): '%slibgd00086.png' is not a valid PNG file in %s on line %d
+bool(false)
index d74e888d6c1566b2104ea298dfb0f5233d1fe694..9c483420a1c90dbe9c18f211965295c7c15a2592 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 png <--> gd1/gd2 conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefrompng") || !function_exists("imagepng")) {
                die("skip png support unavailable");
        }
index 1974610d358cdc6ff44c572f15268ad59bc20d7e..012866a47d13064d049381eddc8410c3a6cd13b2 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 png compression test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefrompng") || !function_exists("imagepng")) {
                die("skip png support unavailable");
        }
index 9c6cca4eb9ad83ad11b1fa7d2e8b70f84e56ff1d..e3dadc54c7c000a7471197b22588c1096b26ca9d 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 xpm --> gd1/gd2 conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }       
+
        if (!function_exists("imagecreatefromxpm")) {
                die("skip xpm read support unavailable");
        }
index 3df491ce44effacda8d1217a2e6c8e00059edf8b..cbe1c4f87154323cfa4277624f965601a81bcf12 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 xpm --> jpeg conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }
+
        if (!function_exists("imagejpeg")) {
                die("skip jpeg support unavailable");
        }
index 520cc3da0a74d8d28ab3902fef5555327856b215..d3993043320888f77c0613680c28523d12076a99 100644 (file)
@@ -1,13 +1,11 @@
 --TEST--
 xpm --> png conversion test
 --SKIPIF--
-<?php 
+<?php
        if (!extension_loaded('gd')) {
                die("skip gd extension not available.");
        }
-       if (!GD_BUNDLED) {
-               die("skip external GD libraries always fail");
-       }
+
        if (!function_exists("imagepng")) {
                die("skip png support unavailable");
        }