ID: 15797 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: GD related Operating System: linux PHP Version: 4.0.6 New Comment:
This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2002-02-28 17:51:32] [EMAIL PROTECTED] The function ImageCreateTrueColor() will cause a fatal error when it detects that an incorrect version of GD is installed. Since the php code cannot investigate which version of GD is installed before this call is made, this makes it impossible to create applications which can gracefully degrade depending on the version of GD installed. The fatal error is inconsistent with the warnings that are returned when GIF,PNG, or JPEG support is not compiled into GD. The return value for all these functions should be a warning to allow maximum flexibility to the programmer. if (! $Image = ImageCreateTrueColor($w,$h)) { $Image = ImageCreate($w,$h); } It is not possible to execute the above code because the fatal error when GD 2.0 is not installed will cease execution of the code. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15797&edit=1