cvs: php-src(PHP_4_3) /ext/gd/tests bug28984.phpt
| From: | Jani Taskinen | Date: | Thu, 30 Dec 2004 04:44:59 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/gd/tests bug28984.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29718@lists.php.net to get a copy of this message | ||
sniper Wed Dec 29 23:44:59 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/gd/tests bug28984.phpt
Log:
- Fixed crap removal
http://cvs.php.net/diff.php/php-src/ext/gd/tests/bug28984.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/gd/tests/bug28984.phpt
diff -u php-src/ext/gd/tests/bug28984.phpt:1.1.2.1 php-src/ext/gd/tests/bug28984.phpt:1.1.2.2
--- php-src/ext/gd/tests/bug28984.phpt:1.1.2.1 Sat Jul 3 11:32:33 2004
+++ php-src/ext/gd/tests/bug28984.phpt Wed Dec 29 23:44:59 2004
@@ -11,14 +11,17 @@
?>
--FILE--
<?php
+$cwd = dirname(__FILE__);
+
$im = imagecreatetruecolor(100,100);
imagealphablending($im, false);
#$alpha = imagecolorallocatealpha($im, 255, 0, 255,0);
$alpha = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 2, 2, $alpha);
#imagesavealpha($im, true);
-imagepng($im, '1.png');
+imagepng($im, $cwd . '/1.png');
imagedestroy($im);
+@unlink($cwd . '/1.png');
echo "Done\n";
?>
--EXPECT--