Page 1 of 1

PHP5 and GD version

Posted: Mon Sep 04, 2006 6:56 pm
by neophyte
Does anybody know whether PHP5 ever shipped with anything less than GD 2.x? Does anybody know where I could find what GD versions have shipped with PHP5?

Posted: Mon Sep 04, 2006 6:59 pm
by Ollie Saunders
Search http://www.php.net/ChangeLog-4.php for GD with match case on.

Posted: Mon Sep 04, 2006 7:20 pm
by feyd

Code: Select all

[feyd@home]/php-5.0.0>php -n -d extension_dir="./ext" -r "dl('php_gd2.dll'); var_dump(gd_info());"
array(12) {
  ["GD Version"]=>
  string(27) "bundled (2.0.23 compatible)"
  ["FreeType Support"]=>
  bool(true)
  ["FreeType Linkage"]=>
  string(13) "with freetype"
  ["T1Lib Support"]=>
  bool(false)
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(false)
  ["JPG Support"]=>
  bool(true)
  ["PNG Support"]=>
  bool(true)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(false)
  ["XBM Support"]=>
  bool(true)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}

[feyd@home]/php-5.0.0>php -v
PHP 5.0.0 (cli) (built: Jul 13 2004 21:39:58)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies

Posted: Mon Sep 04, 2006 7:55 pm
by neophyte
Thanks guys.

I'm aware of gd_info(), imagetypes(), load_extension() and so forth that are commonly used inconjunction with GD. I'm trying to determine what needs to be tested for with PHP5? For example, gif image types were not apart of the GD library for a few versions, would a PHP5 install bump into problems with that?

I'm guessing because the GD lib can configured as a shared library there is no telling what version of GD is installed even if the code was written for PHP5. Or am I totally wrong?

Excedrin anyone?

Posted: Mon Sep 04, 2006 7:57 pm
by neophyte
BTW thanks for the post Feyd.

Posted: Mon Sep 04, 2006 9:42 pm
by feyd
gd_info() contained all the information you are wanting. :?

Posted: Tue Sep 05, 2006 3:41 am
by Ollie Saunders
and the changelog tells you when support was added for various things. Change the 4 to a 5 to see the changelog for 5.