diff options
| author | Marcus Boerger <helly@php.net> | 2003-05-19 21:50:06 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-05-19 21:50:06 +0000 |
| commit | d66fa199b42c16d89ef56905b6938269bbca7e3b (patch) | |
| tree | 0f5a9913c36ba65375c9dae15e310e343855d5d4 | |
| parent | b3251de43fd416e8c652ad9dcaf5c241c15e053d (diff) | |
| download | php-git-d66fa199b42c16d89ef56905b6938269bbca7e3b.tar.gz | |
MFH
| -rw-r--r-- | ext/gd/tests/bug19366.phpt | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/ext/gd/tests/bug19366.phpt b/ext/gd/tests/bug19366.phpt index 5e4d7285b3..83dfa63100 100644 --- a/ext/gd/tests/bug19366.phpt +++ b/ext/gd/tests/bug19366.phpt @@ -7,18 +7,18 @@ gdimagefill() function (Bug #19366 (fixed in bundled libgd)) ?> --FILE-- <?php -echo "Alive\n"; +echo "Alive: create image\n"; $width = 50; $height = 100; $ImHandle = imagecreate($width,$height); -echo "Alive\n"; -//Define colors + +echo "Alive: Define colors\n"; $MyBlue = imagecolorAllocate($ImHandle, 0, 0, 255); $MyRed = imagecolorAllocate($ImHandle, 255, 0, 0); $MyWhite = imagecolorAllocate($ImHandle, 255, 255, 255); $MyBlack = imagecolorAllocate($ImHandle, 0, 0, 0); -echo "Alive\n"; -//Draw + +echo "Alive: Draw\n"; ImageFill($ImHandle,0,0,$MyBlack); ImageLine($ImHandle,20,20,180,20,$MyWhite); ImageLine($ImHandle,20,20,20,70,$MyBlue); @@ -31,20 +31,23 @@ ImageLine($ImHandle,100,45,180,45,$MyRed); ImageFill($ImHandle,21,45,$MyBlue); ImageFill($ImHandle,100,69,$MyRed); ImageFill($ImHandle,100,21,$MyWhite); + +echo "Alive: ImageString\n"; ImageString($ImHandle,4,40,75,"Czech Republic",$MyWhite); -echo "Alive\n"; -// Send to browser -Header("Content-type: image/PNG"); + +echo "Alive: Send to browser\n"; +//Header("Content-type: image/PNG"); //ImagePNG($ImHandle); -echo "Alive\n"; -//Free resources + +echo "Alive: Free resources\n"; imagedestroy($ImHandle); -echo "Alive\n"; +echo "Alive: Done\n"; ?> --EXPECT-- -Alive -Alive -Alive -Alive -Alive -Alive +Alive: create image +Alive: Define colors +Alive: Draw +Alive: ImageString +Alive: Send to browser +Alive: Free resources +Alive: Done |
