Bug #17912 Updated: getting info from gd.so

From: Date: Mon, 24 Jun 2002 10:08:38 +0000
Subject: Bug #17912 Updated: getting info from gd.so
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11895@lists.php.net to get a copy of this message
ID: 17912 Updated by: derick@php.net Reported By: tit.petric@telemach.net -Status: Assigned +Status: Closed Bug Type: GD related Operating System: linux debian/mandrake PHP Version: 4.2.1 Assigned To: derick New Comment: Correct, and as I'm about to commit it, I close this 'bug' too. Derick Previous Comments: ------------------------------------------------------------------------ [2002-06-24 06:06:57] tit.petric@telemach.net this will make function_exists("imagecreatetruecolor"); return true or false respectively, weather you have gd2.0 or not, correct? ------------------------------------------------------------------------ [2002-06-24 05:30:53] derick@php.net Yup, and i'm almost done ... testing now :) ------------------------------------------------------------------------ [2002-06-24 04:02:56] sniper@php.net The fix would be to make the functions be only available when they are available..I guess that's what you're gonna do, Derick? ------------------------------------------------------------------------ [2002-06-21 16:33:34] tit.petric@telemach.net p.s. in case i wasnt clear... by "supporting both" i ment, not supporting each one seperately (a module for gd and a module for gd2) ------------------------------------------------------------------------ [2002-06-21 16:32:17] tit.petric@telemach.net well, that would only tell me which filetypes are supported, and not which functions, as you see copyimageresized() and copyimageresampled() are perfect examples of the differences between gd1 and gd2 (or advancements) more accurate comparison would be "imagecreate" in gd1 and "imagecreatetruecolor" in gd2 (note the first comment posted on http://www.php.net/manual/en/function.imagecolorallocate.php where it also specifies this difference) there are a lot of difference between gd1 and gd2 and this problem comes out of supporting both, since the api differs for each one. p.s. i tried to solve this problem with function_exists("imagecreatetruecolor") but that always returns true, and after i call it it says i need GD2.0 or higher (which is the truth) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17912 -- Edit this bug report at http://bugs.php.net/?id=17912&edit=1

« previous php.bugs (#11895) next »