php-src/ext/gd/tests/imagecreatefromstring_png.phpt
Christoph M. Becker a375d54785
Migrate skip checks to --EXTENSIONS-- for ext/gd
Cf. PR #6787.

Closes GH-6994.
2021-05-22 15:38:51 +02:00

20 lines
383 B
PHP

--TEST--
imagecreatefromstring() - PNG format
--EXTENSIONS--
gd
--SKIPIF--
<?php
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));
?>
--EXPECT--
int(10)
int(10)