View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035200 | mantisbt | ui | public | 2024-12-24 10:57 | 2025-03-01 18:40 |
Reporter | raspopov | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.27.0 | ||||
Target Version | 2.27.1 | Fixed in Version | 2.27.1 | ||
Summary | 0035200: Plug-in listing error during the language test process. | ||||
Description | On the screenshot you can see that the list of plugins also includes the ‘.’ and ‘...’ folders. And even tries to test them. | ||||
Steps To Reproduce | Open: | ||||
Tags | PHP 8.2 | ||||
Attached Files | |||||
PR: 2063. |
|
After PR: |
|
That's weird, I'm 100% sure this used to work correctly, and this code has not been touched since I refactored the language checks back in 2021 (0027383). Maybe something changed in PHP, let me check. |
|
Yep that's it. Works fine in PHP <= 8.1, broken since 8.2. https://www.php.net/manual/en/migration82.incompatible.php#migration82.incompatible.standard
So all we need is to add the |
|
It's elegant. |
|
MantisBT: master-2.27 1f556e79 2024-12-26 06:34 Details Diff |
Fix test_langs.php processing ./.. as plugins Since PHP 8.2, dot directories are no longer excluded by default by FileSystemOperator [1]. Fixes 0035200 [1]: https://www.php.net/manual/en/migration82.incompatible.php#migration82.incompatible.standard |
Affected Issues 0035200 |
|
mod - admin/test_langs.php | Diff File |