2002-11-12 17:47:20 +00:00
|
|
|
--TEST--
|
|
|
|
GetImageSize() for compressed swf files
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
|
2004-12-16 12:34:32 +00:00
|
|
|
die("skip zlib extension is not available");
|
2002-11-12 17:47:20 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
var_dump(getimagesize(dirname(__FILE__) . "/test13pix.swf"));
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
array(5) {
|
|
|
|
[0]=>
|
|
|
|
int(550)
|
|
|
|
[1]=>
|
|
|
|
int(400)
|
|
|
|
[2]=>
|
|
|
|
int(13)
|
|
|
|
[3]=>
|
|
|
|
string(24) "width="550" height="400""
|
|
|
|
["mime"]=>
|
|
|
|
string(29) "application/x-shockwave-flash"
|
|
|
|
}
|
2005-08-16 09:11:00 +00:00
|
|
|
--UEXPECT--
|
|
|
|
array(5) {
|
|
|
|
[0]=>
|
|
|
|
int(550)
|
|
|
|
[1]=>
|
|
|
|
int(400)
|
|
|
|
[2]=>
|
|
|
|
int(13)
|
|
|
|
[3]=>
|
|
|
|
unicode(24) "width="550" height="400""
|
|
|
|
[u"mime"]=>
|
|
|
|
unicode(29) "application/x-shockwave-flash"
|
|
|
|
}
|