Re: cvs: php4 /ext/standard/tests/image getimagesize.phpt image_type_to_mime_type.phpt skipif_imagetype.inc

From: Date: Fri, 08 Nov 2002 08:33:54 +0000
Subject: Re: cvs: php4 /ext/standard/tests/image getimagesize.phpt image_type_to_mime_type.phpt skipif_imagetype.inc
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15904@lists.php.net to get a copy of this message
Why remove the IMAGETYPE_SWC check comment here. I wrote it to the list complete, so everyone can see that some types are excluded. Anyway thanks for the swf/swc files and tests! marcus At 03:50 08.11.2002, Ilia Alshanetsky wrote:
iliaa           Thu Nov  7 21:50:28 2002 EDT
Modified files:
    /php4/ext/standard/tests/image      getimagesize.phpt
                                        image_type_to_mime_type.phpt
                                        skipif_imagetype.inc
Log: Move SWC (compressed swf) check into a separate test because this check requires zlib. This separation allows us to skip the test if zlib is not available and not fail. (...) Index: php4/ext/standard/tests/image/skipif_imagetype.inc diff -u php4/ext/standard/tests/image/skipif_imagetype.inc:1.1 php4/ext/standard/tests/image/skipif_imagetype.inc:1.2
--- php4/ext/standard/tests/image/skipif_imagetype.inc:1.1      Sun Nov  3 08:52:45 2002
+++ php4/ext/standard/tests/image/skipif_imagetype.inc  Thu Nov  7 21:50:28 2002
@@ -1,16 +1,15 @@ -<?php
-if (!defined('IMAGETYPE_GIF'))     die('skip images of type GIF not supported');
-if (!defined('IMAGETYPE_JPEG'))    die('skip images of type JPEG not supported');
-if (!defined('IMAGETYPE_PNG'))     die('skip images of type PNG not supported');
-//if (!defined('IMAGETYPE_SWF'))     die('skip images of type SWF not supported');
-if (!defined('IMAGETYPE_PSD'))     die('skip images of type PSD not supported');
-if (!defined('IMAGETYPE_BMP'))     die('skip images of type BMP not supported');
-if (!defined('IMAGETYPE_TIFF_II')) die('skip images of type TIFF not supported');
-if (!defined('IMAGETYPE_TIFF_MM')) die('skip images of type TIFF not supported');
-if (!defined('IMAGETYPE_JPC'))     die('skip images of type JPC not supported');
-//if (!defined('IMAGETYPE_JP2'))     die('skip images of type JP2 not supported');
-//if (!defined('IMAGETYPE_JPX'))     die('skip images of type JPX not supported');
-//if (!defined('IMAGETYPE_JB2'))     die('skip images of type JB2 not supported');
-//if (!defined('IMAGETYPE_SWC'))     die('skip images of type SWC not supported');  // SWC requires zlib
-if (!defined('IMAGETYPE_IFF'))     die('skip images of type IFF not supported');
-?> +<?php
+if (!defined('IMAGETYPE_GIF'))     die('skip images of type GIF not supported');
+if (!defined('IMAGETYPE_JPEG'))    die('skip images of type JPEG not supported');
+if (!defined('IMAGETYPE_PNG'))     die('skip images of type PNG not supported');
+if (!defined('IMAGETYPE_SWF'))     die('skip images of type SWF not supported');
+if (!defined('IMAGETYPE_PSD'))     die('skip images of type PSD not supported');
+if (!defined('IMAGETYPE_BMP'))     die('skip images of type BMP not supported');
+if (!defined('IMAGETYPE_TIFF_II')) die('skip images of type TIFF not supported');
+if (!defined('IMAGETYPE_TIFF_MM')) die('skip images of type TIFF not supported');
+if (!defined('IMAGETYPE_JPC'))     die('skip images of type JPC not supported');
+//if (!defined('IMAGETYPE_JP2'))     die('skip images of type JP2 not supported');
+//if (!defined('IMAGETYPE_JPX'))     die('skip images of type JPX not supported');
+//if (!defined('IMAGETYPE_JB2'))     die('skip images of type JB2 not supported');
+if (!defined('IMAGETYPE_IFF'))     die('skip images of type IFF not supported');
+?> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.cvs (#15904) next »