1--TEST-- 2imagecreatefromstring() - GIF format 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php 7if (!(imagetypes() & IMG_GIF)) die('skip GIF support required'); 8?> 9--FILE-- 10<?php 11// create an image from a GIF string representation 12$im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif')); 13var_dump(imagesx($im)); 14var_dump(imagesy($im)); 15 16?> 17--EXPECT-- 18int(10) 19int(10) 20