Bug #10454: No output on imagepng
| From: | charley at collins dot ch | Date: | Mon, 23 Apr 2001 11:09:48 +0000 |
| Subject: | Bug #10454: No output on imagepng | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52183@lists.php.net to get a copy of this message | ||
From: charley@collins.ch
Operating system: Redhat 6.1
PHP version: 4.0.4pl1
PHP Bug Type: GD related
Bug description: No output on imagepng
Imagepng gives no output and no error message if the /tmp folder is full.
The header is writed, but there is no output at all.
Would be nice if there is a message if the file can't be created.
$im = ImageCreate($xx, $yy) or die ("Cannot Initialize new GD image stream");
$black = ImageColorAllocate( $im, 0, 0, 0 );
$white = ImageColorAllocate( $im, 255, 255, 255 );
ImageLine( $im, 0, 0, $xx-1, $yy-1, $white);
header("Content-Type: image/png");
ImagePng( $im );
--
Edit Bug report at: http://bugs.php.net/?id=10454&edit=1