Date: 11/10/00
- Next message: meik.doell <email protected>: "[PHP-DEV] PHP 4.0 Bug #7744: safe mode php wrong script uid"
- Previous message: Kirill Maximov: "[PHP-DEV] Re: [PHP-QA] $obj = new foo() patch"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #7743: gd lib problems displaying dynamic images"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #7743: gd lib problems displaying dynamic images"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: paul.d.rowlands <email protected>
Operating system: Windows NT 4
PHP version: 4.0.3pl1
PHP Bug Type: *Function Specific
Bug description: gd lib problems displaying dynamic images
The following code does not work with php4.0.3p1 under windows NT.
It shows complete garbage text on the display.
However if you save the image to a png file and use <img src=$filename> tag it will work.
<?php
Header("Content-Type: image/png");
$im = ImageCreate(100,100);
$black = ImageColorAllocate($im,0,0,0);
$white = ImageColorAllocate($im,255,255,255);
ImageLine($im,0,0,99,99,$white);
if(ImageTypes() & IMG_PNG) {echo "PNG SUPPORTED";}
if(ImageTypes() & IMG_GIF) {echo "GIF SUPPORTED";}
ImagePng($im);
ImageDestroy($im);
?>
-- Edit Bug report at: http://bugs.php.net/?id=7743&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: meik.doell <email protected>: "[PHP-DEV] PHP 4.0 Bug #7744: safe mode php wrong script uid"
- Previous message: Kirill Maximov: "[PHP-DEV] Re: [PHP-QA] $obj = new foo() patch"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #7743: gd lib problems displaying dynamic images"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0 Bug #7743: gd lib problems displaying dynamic images"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

