Bug #17912 Updated: getting info from gd.so

From: Date: Mon, 24 Jun 2002 09:30:53 +0000
Subject: Bug #17912 Updated: getting info from gd.so
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11892@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 Bug Type: GD related Operating System: linux debian/mandrake PHP Version: 4.2.1 Assigned To: derick New Comment: Yup, and i'm almost done ... testing now :) Previous Comments: ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ [2002-06-21 16:21:45] rasmus@php.net Why do you want the version? Isn't it the capabilities you are interested in? imagetypes() would give you that. The version tells you next to nothing since every version of GD can be compiled differently. ie. with or without ttf, png, jpg, gif, etc. ------------------------------------------------------------------------ [2002-06-21 16:16:53] tit.petric@telemach.net hmm in phpinfo() in the gd section the module info says gd 1.6.2 or higher, and i jumped to conclusion that this is what the module itself supports (since i have gd1.9.something), and didnt check if there is a seperate module for gd2 (which i doubt there is, meaning the version reply should stay the same or am i wrong?) is there any way to get this number without having to parse/grep phpinfo(), something like a variable $IMG_* (nothing acctual system-level listed in there yet) p.s. congrats on the baby rasmus (a bit late, but better than never :)) ------------------------------------------------------------------------ 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 (#11892) next »