Forum

__autoload() is deprecated, use spl_autoload_register()

Nicolas
16 February 2018, 15:07
Hello,

I’m using Monitor 1.5 with PHP 7.2 since the beginning of this week (with a new server replacing my old one) and I have received two mails about __autoload() being deprecated:

 Date, time: 12 February 2018, 19:07:32
Used URL: /
IP address: 129.78.110.124
Username: -
User-Agent:


<b>Deprecated</b>: __autoload() is deprecated, use spl_autoload_register () instead in <b> […]/monitor/libraries/banshee.php </b>on line <b>41</b>


Date, time: 15 February 2018, 22:48:29
Used URL: /
IP address: 138.246.253.19
Username: -
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36


<b>Deprecated</b>: __autoload() is deprecated, use spl_autoload_register () instead in <b> […]/monitor/libraries/banshee.php </b>on line <b>41</b>


Both IPs are from universities scanning Internet and saying they don’t attempt to break or log into the scanned systems.

I may try to contact them later, to understand why only after their scans did Monitor 1.5 send those two emails (I was logged in multiple times this week to monitor the new server but never received an email with my IP address), but in the meantime, what can I do to fix this alert? Can I just replace __autoload() by splitting_autoload_register () on line 41? Or is it something not really important and I can safely wait for the next Monitor release ?
Hugo Leisink
16 February 2018, 21:35
Rename __autoload() to banshee_autoload() and add the following line to the end of that file
spl_autoload_register("banshee_autoload");
Nicolas
17 February 2018, 18:49
Thank you
This topic has been closed.