GD version available in script ?

From: Date: Thu, 05 Sep 2002 18:21:15 +0000
Subject: GD version available in script ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-87968@lists.php.net to get a copy of this message
Hello, Working on PEAR::Image_Transform, I realize there is no way to check the currently used gd version. Beside that, gd2 functions are always available (raise warning if wrong gd version), this forces us to make a first call the function and call it again : if(@ImageCreateTrueColor()){ $new_img =ImageCreateTrueColor($new_x,$new_y); } else { $new_img =ImageCreate($new_x,$new_y); } Is it possible to add a constant at build time ? or is there a better way to do it ? thank's in advance, pa ps: sorry for the 1st post, double enter key pressed too fast :)

« previous php.dev (#87968) next »