Hi Christoph,

Christoph M. Becker wrote:
So the question is how to handle the version information of the bundled
libgd for the time being.   With regard to gd_info()['GD Version'] just
saying "bundled" (without any compatibility statement) might be a good
solution.  However, I'm at a loss how to handle GD_*_VERSION.  Any ideas?

This might be a bit… maverick, but I wonder if we could get away with a semi-numeric string constant. The string "2-phpbundled" would compare greater than or equal to 2:

$ php -r 'var_dump("2-phpbundled" == 2);'
$ php -r 'var_dump("2-phpbundled" >= 2);'

The problem is that, well, some code out there might want an actual integer. It's also a bit ugly…

Andrea Faulds

PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to