View Issue Details

IDProjectCategoryView StatusLast Update
0023710mantisbtcode cleanuppublic2018-12-29 08:41
Reporteratrol Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version2.9.0 
Target Version2.10.0Fixed in Version2.10.0 
Summary0023710: Remove usage of deprecated function __autoload
Description

__autoload has been deprecated as of PHP 7.2 [1][2]

We have an implementation of function __autoload in core.php.
Therefore, according a user in forum, you get messages in PHP log when using PHP 7.2 [3]

I had a short look at it and found that we are using __autoload and spl_autoload_register.

I have no time to have a deeper look at the moment, maybe we have just to rename __autoload and use it as parameter for spl_autoload_register.

[1] http://php.net/manual/en/migration72.deprecated.php
[2] http://php.net/manual/en/function.autoload.php
[3] https://www.mantisbt.org/forums/viewtopic.php?f=2&t=25177

TagsNo tags attached.

Relationships

has duplicate 0025129 closedatrol Remove usage of deprecated function __autoload 

Activities

vboctor

vboctor

2017-12-08 21:38

manager   ~0058365

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

atrol

atrol

2017-12-10 17:00

developer   ~0058375

PR 1240 comes with a lot of changes not related to the issue.
I would like to fix the issue independent from those changes, therefore alternative PR https://github.com/mantisbt/mantisbt/pull/1253

Related Changesets

MantisBT: master 5a16317f

2017-12-08 16:37

vboctor


Details Diff
Remove usage of deprecated function `__autoload`

Fixes 0023710
Affected Issues
0023710
mod - core.php Diff File

MantisBT: master 0c535cf2

2017-12-10 11:45

atrol

Committer: vboctor


Details Diff
Don't use deprecated __autoload

Fixes 0023710
Affected Issues
0023710
mod - core.php Diff File

MantisBT: master-1.3.x 86232c21

2017-12-10 11:45

atrol

Committer: dregad


Details Diff
Don't use deprecated __autoload

Fixes 0025129

Backported from 0c535cf2ec74640c8ac85946c60445325aa26787 (Issue 0023710)
Affected Issues
0023710, 0025129
mod - core.php Diff File