What to do with bundled GD's version info?

From: Date: Fri, 02 Feb 2018 22:45:58 +0000
Subject: What to do with bundled GD's version info?
Groups: php.internals 
Request: Send a blank email to internals+get-101744@lists.php.net to get a copy of this message
Hi everybody! Please consider the following script: <?php echo gd_info()['GD Version'], PHP_EOL, GD_MAJOR_VERSION, '.', GD_MINOR_VERSION, '.', GD_RELEASE_VERSION, PHP_EOL; If PHP is compiled with the *bundled* libgd, it outputs since at least PHP 5.3.25/5.4.1: bundled (2.1.0 compatible) 2.0.35 Obviously, that would mean there have been no relevant changes to the bundled libgd for years, which is not true. Even worse, there has never been a bundled libgd version which was fully compatible to system libgd 2.1.0, ever. Presently, we're somewhat close to libgd 2.2.5, but still we couldn't claim full compatibility. Of course, in the long run the goal is to finally bundle an unmodified copy of the upstream library, but for now that appears out of reach. 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? -- Christoph M. Becker

« previous php.internals (#101744) next »