summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagecreatefromstring_gif.phpt
blob: 66f91c1aff2a9b6b9419dd79facf8cf1579e8b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
imagecreatefromstring() - GIF format
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip ext/gd required');
if (!(imagetypes() & IMG_GIF)) die('skip GIF support required');
?>
--FILE--
<?php
// create an image from a GIF string representation
$im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
var_dump(imagesx($im));
var_dump(imagesy($im));

?>
--EXPECT--
int(10)
int(10)