1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 19:14:16 +02:00
Files
archived-php-src/ext/gd/tests/imagecreatefromstring_png.phpt
2017-07-30 02:50:33 +02:00

21 lines
445 B
PHP

--TEST--
imagecreatefromstring() - PNG format
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip ext/gd required');
if (!(imagetypes() & IMG_PNG)) die('skip PNG support required');
?>
--FILE--
<?php
// create an image from a PNG string representation
$im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
var_dump(imagesx($im));
var_dump(imagesy($im));
?>
===DONE===
--EXPECT--
int(10)
int(10)
===DONE===