]> granicus.if.org Git - php/commitdiff
MFH: fix tests
authorfoobar <sniper@php.net>
Wed, 15 Dec 2004 08:30:53 +0000 (08:30 +0000)
committerfoobar <sniper@php.net>
Wed, 15 Dec 2004 08:30:53 +0000 (08:30 +0000)
ext/gd/tests/bug22544.phpt
ext/gd/tests/bug24155.phpt
ext/gd/tests/bug27582_1.phpt

index 961432e661bd8e75465af6ba0508e8e645b82597..3c21f0b3c97b475eef7afc604441842dc749a6c1 100644 (file)
@@ -11,7 +11,7 @@ Bug #22544 (TrueColor transparency in PNG images).
 ?>
 --FILE--
 <?php
-       $dest = dirname(realpath(__FILE__)) . 'bug22544.png';
+       $dest = dirname(realpath(__FILE__)) . '/bug22544.png';
        @unlink($dest);
        $image = imageCreateTruecolor(640, 100);
        $transparent = imageColorAllocate($image, 0, 0, 0);
index aa931e619f36a5ae9d1c13e29f7163f4da4de5b0..3bcc8974a7f6807f80b118da8a2e5c9275ea8238 100644 (file)
@@ -11,7 +11,7 @@ Bug #24155 (gdImageRotate270 rotation problem).
 ?>
 --FILE--
 <?php
-       $dest = dirname(realpath(__FILE__)) . 'bug24155.png';
+       $dest = dirname(realpath(__FILE__)) . '/bug24155.png';
        @unlink($dest);
 
        $im = imagecreatetruecolor(30, 50);
index 6dee785b1601af5f58a0f8420164b8ae629c48f2..acc96700809e21b71fcf97240c5bacae66c87f32 100644 (file)
@@ -8,7 +8,7 @@ gdimagefill() function (Bug #19366 (fixed in bundled libgd))
 --FILE--
 <?php
 /* $id$ */
-$dest = dirname(realpath(__FILE__)) . 'bug27582.png';
+$dest = dirname(realpath(__FILE__)) . '/bug27582.png';
 @unlink($dest);
 $im = ImageCreateTrueColor(10, 10);
 imagealphablending($im, true);
@@ -18,6 +18,7 @@ $color = ImageColorAllocateAlpha($im, 0, 0, 0, 1);
 ImageFillToBorder($im, 5, 5, $bordercolor, $color);
 imagepng($im, $dest);
 echo md5_file($dest) . "\n";
+@unlink($dest);
 ?>
 --EXPECT--
 08287f8f5d406946009df5f04ca83dc0