mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
20 lines
383 B
PHP
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)
|