mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
18 lines
501 B
PHP
18 lines
501 B
PHP
--TEST--
|
|
imagecopy doen't copy alpha, palette to truecolor
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('imagecopy')) die("skip gd extension not available\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$file = dirname(__FILE__) . '/bug38212.gd2';
|
|
$im1 = imagecreatetruecolor(10,100);
|
|
imagefill($im1, 0,0, 0xffffff);
|
|
imagegd2($im1, $file);
|
|
$im = imagecreatefromgd2part($file, 0,0, -25,10);
|
|
unlink($file);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecreatefromgd2part(): '%sbug38212.gd2' is not a valid GD2 file in %sbug38212.php on line %d
|