vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=324027

Function eregi() is deprecated help
by z3r0
16 Dec 2016 11:35

Hi guys,

I'm just testing out php5.6 on my site and my error logs are filling with "Function eregi() is deprecated" messages that relate to this GARS plugin, from what I've been reading the eregi needs to be replaced with a preg_match, but I just can't get it right.



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I'm sure it will be a simple fix for one of you guys.

Thanks

MarkFL 16 Dec 2016 12:11

Try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit:

It would be more efficient to use the stripos() function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


z3r0 16 Dec 2016 13:28

Thanks, that seems to have done the trick :)


All times are GMT. The time now is 04:00.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.