mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
17 lines
313 B
Plaintext
17 lines
313 B
Plaintext
|
--TEST--
|
||
|
Test max colors for a gd image.
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded('gd')) {
|
||
|
die("skip gd extension not available\n");
|
||
|
}
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
imagecreatefromgd(dirname(__FILE__) . '/crafted.gd2');
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: imagecreatefromgd(): '%scrafted.gd2' is not a valid GD file in %s on line %d
|
||
|
|