|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-21 15:54 UTC] tit dot petric at telemach dot net
im having trouble determinating to which version of GD gd.so was linked to, phpinfo() only shows the acctual version of gd.so, but not the version of GD it was linked to..
some variable to show the acctual gd version (major and minor) would be nice, so i and other people would know how to dynamically use image* functions according to that variable, because setting up each server with platform-dependant code is a bit time consuming, and coding two different image libraries or graphing libraries which use GD is also a waste of time, if just a few functions change their names and behaviour.
example would be..
if ($GD_VERSION=='1') {
imagecopyresized(...);
} else {
imagecopyresampled(...);
}
be a sweetheart and add that :* (otherwise excelent work)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 19:00:01 2025 UTC |
this will make function_exists("imagecreatetruecolor"); return true or false respectively, weather you have gd2.0 or not, correct?