mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Commited for Sanjay, reviewed by Pierre. Testfest task 117.
This commit is contained in:
parent
b202ef7494
commit
f88ab53c3d
1 changed files with 38 additions and 0 deletions
38
ext/standard/tests/image/getimagesize_variation_005.phpt
Normal file
38
ext/standard/tests/image/getimagesize_variation_005.phpt
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
--TEST--
|
||||||
|
Test getimagesize() function : basic functionality for shockwave-flash
|
||||||
|
--SKIPIF--
|
||||||
|
<?php
|
||||||
|
if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
|
||||||
|
die("skip zlib extension is not available or SWC not supported");
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
/* Prototype : array getimagesize(string imagefile [, array info])
|
||||||
|
* Description: Get the size of an image as 4-element array
|
||||||
|
* Source code: ext/standard/image.c
|
||||||
|
*/
|
||||||
|
|
||||||
|
echo "*** Testing getimagesize() : basic functionality ***\n";
|
||||||
|
|
||||||
|
var_dump( getimagesize(dirname(__FILE__)."/test13pix.swf", $info) );
|
||||||
|
var_dump( $info );
|
||||||
|
?>
|
||||||
|
===DONE===
|
||||||
|
--EXPECTF--
|
||||||
|
*** Testing getimagesize() : basic functionality ***
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
array(0) {
|
||||||
|
}
|
||||||
|
===DONE===
|
Loading…
Add table
Add a link
Reference in a new issue