Re: What to do with bundled GD's version info?

From: Date: Mon, 05 Feb 2018 02:35:24 +0000
Subject: Re: What to do with bundled GD's version info?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-101765@lists.php.net to get a copy of this message
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);' bool(true) $ php -r 'var_dump("2-phpbundled" >= 2);' bool(true) The problem is that, well, some code out there might want an actual integer. It's also a bit ugly… Thanks. -- Andrea Faulds https://ajf.me/

« previous php.internals (#101765) next »