View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0034684 | mantisbt | api soap | public | 2024-09-20 21:36 | 2024-09-28 11:28 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.26.4 | Fixed in Version | 2.26.4 | ||
| Summary | 0034684: SOAP API throwing deprecation warning on PHP 8.1 | ||||
| Description | Retrieving an issue via SOAP API (e.g. calling mc_project_get_issues) when one of the bugnotes has no text (BugnoteData->note === null), yields the following error preg_replace(): Passing null to parameter 0000003 ($subject) of type array|string is deprecated | ||||
| Steps To Reproduce | Run PHPUnit tests/soap suite with PHP >= 8.1 PHPUnit 9.6.20 by Sebastian Bergmann and contributors. Runtime: PHP 8.1.29 ..................EEE. 22 / 22 (100%) Time: 00:05.685, Memory: 14.00 MB There were 3 errors: 1) FilterTest::testGetAllProjectsIssues /Users/dregad/dev/mantisbt/mantis/tests/soap/FilterTest.php:614 2) FilterTest::testGetAllProjectsIssueHeaders /Users/dregad/dev/mantisbt/mantis/tests/soap/FilterTest.php:644 3) FilterTest::testFilterGetIssuesReturnsIssueMonitors /Users/dregad/dev/mantisbt/mantis/tests/soap/FilterTest.php:614 ERRORS! | ||||
| Additional Information | This is probably not a normal usage scenario, as the tracker where this happened had data integrity issues (the bugnote_text record referenced in bugnote table was missing). | ||||
| Tags | PHP 8.1 | ||||