Annotation of embedaddon/php/ext/standard/tests/image/getimagesize_variation4.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test getimagesize() function : variation - For shockwave-flash format
                      3: --SKIPIF--
                      4: <?php
                      5:        if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
                      6:                die("skip zlib extension is not available");
                      7:        }
                      8: ?>
                      9: --FILE--
                     10: <?php
                     11: /* Prototype  : array getimagesize(string imagefile [, array info])
                     12:  * Description: Get the size of an image as 4-element array 
                     13:  * Source code: ext/standard/image.c
                     14:  */
                     15: 
                     16: echo "*** Testing getimagesize() : variation ***\n";
                     17: 
                     18: var_dump( getimagesize(dirname(__FILE__)."/test13pix.swf", $info) );
                     19: var_dump( $info );
                     20: ?>
                     21: ===DONE===
                     22: --EXPECTF--
                     23: *** Testing getimagesize() : variation ***
                     24: array(5) {
                     25:   [0]=>
                     26:   int(550)
                     27:   [1]=>
                     28:   int(400)
                     29:   [2]=>
                     30:   int(13)
                     31:   [3]=>
                     32:   string(24) "width="550" height="400""
                     33:   ["mime"]=>
                     34:   string(29) "application/x-shockwave-flash"
                     35: }
                     36: array(0) {
                     37: }
                     38: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>