SMF Support > SMF 2.0.x Support
Function split() is deprecated
(1/1)
dvk01:
http://Domain.co.uk/index.php?action=register2
8192: Function split() is deprecated
File: /home/<account name>/public_html/Sources/Subs-Members.php
Line: 1395
On all my forums the error log is filling up with bots attempting to register or new members who have registered with this error
message. how can we overcome it or do we need to wait for a new update to SMF to get round it?
SMF 2.0.2
feline:
That is not in the original SMF code ...
You have any mods installed?
dvk01:
only one that affects registration is join reason mod
I will look in that & see whether that is the cause
found it
it is the email validator mod http://custom.simplemachines.org/mods/index.php?mod=1353
I have removed that & hopefully everything will be OK
Thanks for pointing me in right direction
feline:
As I see, the mod use more deprecated functions ...
here:
--- Code: --- list($user,$domain) = split('@',$email);
--- End code ---
and here:
--- Code: --- if(eregi("^$host",$line))
--- End code ---
split('@',$email) you can replace with preg_split('@', $email) .. but for this simple part you can use explode('@', $email);
eregi("^$host",$line) you can replace with preg_match('/^'. $host .'/i', $line)
for more info about deprecated functions see http://php.net/manual/en/migration53.deprecated.php
Navigation
[0] Message Index
Go to full version