mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Replace md5 image comparision with test_image_equals_file()
This commit is contained in:
parent
b843d65599
commit
29cb3c89e5
@ -8,16 +8,13 @@ Bug #22544 (TrueColor transparency in PNG images).
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$dest = dirname(realpath(__FILE__)) . '/bug22544私はガラスを食べられます.png';
|
||||
@unlink($dest);
|
||||
$image = imageCreateTruecolor(640, 100);
|
||||
$transparent = imageColorAllocate($image, 0, 0, 0);
|
||||
$red = imageColorAllocate($image, 255, 50, 50);
|
||||
imageColorTransparent($image, $transparent);
|
||||
imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent);
|
||||
imagegd($image, $dest);
|
||||
echo md5_file($dest) . "\n";
|
||||
@unlink($dest);
|
||||
include_once __DIR__ . '/func.inc';
|
||||
test_image_equals_file(__DIR__ . '/bug22544私はガラスを食べられます.png', $image);
|
||||
?>
|
||||
--EXPECT--
|
||||
7643ef115f642a79c2de6e411f485ddd
|
||||
The images are equal.
|
||||
|
BIN
ext/gd/tests/bug22544私はガラスを食べられます.png
Normal file
BIN
ext/gd/tests/bug22544私はガラスを食べられます.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 284 B |
Loading…
Reference in New Issue
Block a user