summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/tests/image/getimagesize_swc.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/standard/tests/image/getimagesize_swc.phpt b/ext/standard/tests/image/getimagesize_swc.phpt
new file mode 100644
index 0000000000..b9b83f4373
--- /dev/null
+++ b/ext/standard/tests/image/getimagesize_swc.phpt
@@ -0,0 +1,25 @@
+--TEST--
+GetImageSize() for compressed swf files
+--SKIPIF--
+<?php
+ if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
+ die("skip zlib extension is not avaliable");
+ }
+?>
+--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"
+}