View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026458||mantisbt||code cleanup||public||2019-12-10 08:22||2019-12-23 01:50|
|Summary||0026458: deprecated __autoload function|
There are still errors caused by using deprecated __autoload function.
[10-Dec-2019 14:17:29 Europe/Berlin] PHP Deprecated: autoload() is deprecated, use spl_autoload_register() instead in /xxxx/mantisbt-1.3.20/library/phpmailer/PHPMailerAutoload.php on line 45
Solution 0023710 seems not to cover all places where __autoload is used.
|Steps To Reproduce|
Tested with PHP 7.2.19
|Tags||No tags attached.|
The deprecation notice is triggered by PHPMailer. MantisBT 1.3.x relies on version 5.2 of this library, and we are already using the latest available version (5.2.27). PHP 5.x is not supported anymore, and migrating to PHPMailer 6.x is well beyond the scope of changes that we would consider for the legacy branch, (critical bug and security fixes only).
Note that __autoload() method is deprecated, but still fully functional. It is not expected to be removed until PHP 8.0.
Therefore, we're not going to fix this. If the warning in your error log bothers you, you should suppress E_DEPRECATED notices by setting _errorreporting as appropriate in your php.ini.
I recommend you upgrade to MantisBT 2.x.