View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032809 | mantisbt | bugtracker | public | 2023-08-07 19:54 | 2023-10-14 12:28 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.25.8 | Fixed in Version | 2.25.8 | ||
Summary | 0032809: PHP 8.1 deprecation notice in user_search_cache() | ||||
Description | PHPUnit test case LoginTest::testLoginWithNullPasswordIsRejected fails on PHP 8.1 due to error: | ||||
Tags | PHP 8.1 | ||||
@dregad we do still support PHP 5.5 in master-2.25. The null coalescing operator can't be used, as it was introduced with PHP 7.0. |
|
Damn, I keep forgetting :-( |
|
Time to get out 2.26.0 ... |
|
Yes indeed... I've actually been working on that for the past couple weeks since I came back from vacation :-) |
|
MantisBT: master-2.25 a1b5eae8 2023-08-07 19:54 Details Diff |
Fix deprecated notice in user_search_cache() PHPUnit test case LoginTest::testLoginWithNullPasswordIsRejected fails on PHP 8.1 due to error: "strcmp(): Passing null to parameter 0000002 ($string2) of type string is deprecated". When $p_value is null, convert it to empty string before calling strcmp/strcasecmp. Fixes 0032809 |
Affected Issues 0032809 |
|
mod - core/user_api.php | Diff File | ||
MantisBT: master-2.25 519b5b63 2023-08-08 03:32 Details Diff |
Remove null-coalescing operator Not supported in PHP 5.x. Fixes 0032809, follow-up on a1b5eae881a5675dcd78b2d7a0d03371b2228d79. |
Affected Issues 0032809 |
|
mod - core/user_api.php | Diff File |