View Issue Details

IDProjectCategoryView StatusLast Update
0027799mantisbtbugtrackerpublic2020-12-30 07:37
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.24.4Fixed in Version2.24.4 
Summary0027799: Adapt Error handler to PHP 8
Description

In PHP 8, the @ operator will no longer silence fatal errors (E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, E_PARSE).

We need to modify our error handler, use a mask check instead of comparing error_reporting() == 0.

TagsPHP 8

Relationships

related to 0027796 resolveddregad Using an empty timezone causes PHP notice on PHP 8 

Activities

dregad

dregad

2020-12-30 05:41

developer   ~0064866

PR https://github.com/mantisbt/mantisbt/pull/1719

dregad

dregad

2020-12-30 06:03

developer   ~0064868

Backport to 2.24 branch

Related Changesets

MantisBT: master 67e707ea

2020-12-24 08:34:41

dregad

Details Diff
PHP8-compatible check for suppressed errors

Update error_handler() to correctly deal with `@` operator, as per
https://www.php.net/manual/en/migration80.incompatible.php

Fixes 0027799
Affected Issues
0027799
mod - core/error_api.php Diff File

MantisBT: master-2.24 a0566d03

2020-12-24 08:34:41

dregad

Details Diff
PHP8-compatible check for suppressed errors

Update error_handler() to correctly deal with `@` operator, as per
https://www.php.net/manual/en/migration80.incompatible.php

Fixes 0027799

(cherry picked from commit 67e707ea72277dfcedeacf065d450e8c99810f95)
Affected Issues
0027799
mod - core/error_api.php Diff File