View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033058 | mantisbt | plug-ins | public | 2023-10-29 04:48 | 2023-10-31 16:32 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.23.0 | ||||
Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
Summary | 0033058: Unknown named parameter $files | ||||
Description | On PHP 8.0 and later, when a plugin hooks EVENT_BUGNOTE_ADD and the registered callback function does not specify the INTERNAL APPLICATION ERROR | ||||
Steps To Reproduce | Install the following UnknownNamedParamPlugin test plugin:
Add a bug note | ||||
Additional Information | Initially reported by @vboctor on Gitter [1]
| ||||
Tags | PHP 8 | ||||
MantisBT: master 491f8ea9 2019-08-04 12:56 Details Diff |
Add files info to EVENT_BUGNOTE_ADD event Added a `files` argument with array of events. Each containing id, name, and size. |
Affected Issues 0033058 |
|
mod - core/bugnote_api.php | Diff File | ||
mod - core/commands/IssueNoteAddCommand.php | Diff File | ||
mod - core/file_api.php | Diff File | ||
mod - docbook/Developers_Guide/en-US/Events_Reference_Bug.xml | Diff File | ||
MantisBT: master 5e40bc3a 2023-10-29 06:30 Details Diff |
Fix Unknown named parameter $files error on PHP 8+ - Remove the array key when calling event_signal() in bugnote_add() and IssueNoteAddCommand::process(). - Update documentation Fixes 0033058 |
Affected Issues 0033058 |
|
mod - core/bugnote_api.php | Diff File | ||
mod - core/commands/IssueNoteAddCommand.php | Diff File | ||
mod - docbook/Developers_Guide/en-US/Events_Reference_Bug.xml | Diff File |