summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-04-08 08:39:41 +0000
committerfoobar <sniper@php.net>2004-04-08 08:39:41 +0000
commitbb276eb8d4d4473c4656dfb4f64b9f05dfcebe0e (patch)
treee4abbaffd1bec3baa96a3c7f5643aa87ca9f48f2
parent1789e670887fb92ad6a49dd276daa37bda8e77db (diff)
downloadphp-git-bb276eb8d4d4473c4656dfb4f64b9f05dfcebe0e.tar.gz
- Fix test file outputs.
-rw-r--r--ext/gd/tests/bug22544.phpt2
-rw-r--r--ext/gd/tests/bug24155.phpt2
-rw-r--r--ext/gd/tests/bug27582_1.phpt3
3 files changed, 4 insertions, 3 deletions
diff --git a/ext/gd/tests/bug22544.phpt b/ext/gd/tests/bug22544.phpt
index 961432e661..3c21f0b3c9 100644
--- a/ext/gd/tests/bug22544.phpt
+++ b/ext/gd/tests/bug22544.phpt
@@ -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);
diff --git a/ext/gd/tests/bug24155.phpt b/ext/gd/tests/bug24155.phpt
index aa931e619f..3bcc8974a7 100644
--- a/ext/gd/tests/bug24155.phpt
+++ b/ext/gd/tests/bug24155.phpt
@@ -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);
diff --git a/ext/gd/tests/bug27582_1.phpt b/ext/gd/tests/bug27582_1.phpt
index 6dee785b16..acc9670080 100644
--- a/ext/gd/tests/bug27582_1.phpt
+++ b/ext/gd/tests/bug27582_1.phpt
@@ -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