View Issue Details

IDProjectCategoryView StatusLast Update
0035428mantisbtcode cleanuppublic2025-03-01 18:40
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.27.1Fixed in Version2.27.1 
Summary0035428: Calling gpc_get_int() with null default throws deprecation warning on PHP 8.1
Description
gpc_get_int( 'test', null );

DEPRECATED: 'trim(): Passing null to parameter 1 ($string) of type string is deprecated' in '.../core/gpc_api.php' line 134

Additional Information

Noticed while analysing 0035291

TagsPHP 8.1

Relationships

related to 0035291 closeddregad Filters including date custom fields don't work on PHP 8.0 
related to 0035525 resolveddregad gpc_get_int() should not remove spaces in the middle of the string 

Activities

Related Changesets

MantisBT: master-2.27 726961e1

2025-02-23 10:04

dregad


Details Diff
Fix PHP 8.1 deprecation warning in gpc_get_int()

When function is called with null default:
DEPRECATED: 'trim(): Passing null to parameter 1 ($string) of type
string is deprecated' in '.../core/gpc_api.php' line 134

Fixes 0035428
Affected Issues
0035428
mod - core/gpc_api.php Diff File