0037318: get_gd_version() should return the complete version number - MantisBT

View Issue Details

IDProjectCategoryView StatusDate SubmittedLast Update
0037318mantisbtcode cleanuppublic2026年07月20日 12:402026年09月03日 19:04
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0037318: get_gd_version() should return the complete version number
Description

Currently, the function is returning the major GD version as an int (1 or 2) based on the presence of imagegd2(), or GD if the extension is not available.

This is a legacy from early PHP 4 days, when gd_info() did not exist (it was introduced in PHP 4.3.0).

We should simply call gd_info() and return the actual version number.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 9d7b90f3

2026年07月20日 12:41

dregad


Details Diff Return actual GD version from get_gd_version()

Until now, the function was just returning the major version as an int
(or 0 if GD is not available). This is a legacy from early PHP 4 days,
when gd_info() did not exist (it was introduced in PHP 4.3.0).

The function signature was changed to return an actual version string if
GD is available, or false if not.

Fixes 0037318 Affected Issues
0037318
mod - core/utility_api.php Diff File
mod - signup.php Diff File
mod - signup_page.php Diff File
Powered by MantisBT 2.29.0-dev-master-e4ff7ef87
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance
Page execution time: 0.1992 seconds    

AltStyle によって変換されたページ (->オリジナル) /