View Issue Details

IDProjectCategoryView StatusLast Update
0035852mantisbtapi restpublic2025-04-21 14:29
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.27.2Fixed in Version2.27.2 
Summary0035852: REST API GET /filters throws deprecation warning on PHP 8.1
Description

Unhandled deprecation warning in .../core/string_api.php line 237: 'rawurlencode(): Passing null to parameter 1 ($string) of type string is deprecated

TagsPHP 8.1

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master-2.27 71f285fc

2025-04-19 09:45

dregad


Details Diff
Fix PHP warning on REST API GET /filters

Unhandled deprecation warning in .../core/filter_api.php line 417:
'urlencode(): Passing null to parameter 0000001 ($string) of type string is
deprecated'

Add type cast, both in string_url() function and in offending caller
filter_encode_field_and_value(), in preparation for a future change of
parameter type to enforce string.

Fixes 0035852

Backported from 798ccf1d007a9d1712940c60a7dac01c049d38a6.
Affected Issues
0035852
mod - core/filter_api.php Diff File
mod - core/string_api.php Diff File

MantisBT: master 798ccf1d

2025-04-19 09:45

dregad


Details Diff
Fix PHP warning on REST API GET /filters

Unhandled deprecation warning in .../core/string_api.php line 237:
'rawurlencode(): Passing null to parameter 1 ($string) of type string is
deprecated.

Add type cast, both in string_url() function and in offending caller
filter_encode_field_and_value(), in preparation for a future change of
parameter type to enforce string.

Fixes 0035852
Affected Issues
0035852
mod - core/filter_api.php Diff File
mod - core/string_api.php Diff File