Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Dec 2016, 11:35
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Function eregi() is deprecated help

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
Reply With Quote
  #2  
Old 16 Dec 2016, 12:11
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 16 Dec 2016, 13:28
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Thanks, that seems to have done the trick
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:34.

Layout Options | Width: Wide Color: