1--TEST--
2imagecreatefromstring() - PNG format
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (!(imagetypes() & IMG_PNG)) die('skip PNG support required');
8?>
9--FILE--
10<?php
11// create an image from a PNG 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