1
culex
Deprecated functions in php 5.30
  • 2010/3/14 23:57

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Just had a few errors in IE concearning koivi editor. Probably also others will have these.

‘Function eregi() is deprecated’ in PHP 5.3.0? in class/xoopseditor/koivi/include/functions.inc.php line 93 - 109

Just change (example line 97)
if(eregi("opera",$_SERVER['HTTP_USER_AGENT']))


using preg_match with the ‘i’ modifier to
if(preg_match("/^opera/i",$_SERVER['HTTP_USER_AGENT']))


A list of deprecated functions in php 5.30 here with alternative functions

2
Peekay
Re: Deprecated functions in php 5.30
  • 2010/3/25 16:28

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Many thx for that info Culex.

This should be a news item here on XO IMHO. A lot of XOOPS users will be using Koivi and will clearly run into problems when (if) they change their server setup.

3
culex
Re: Deprecated functions in php 5.30
  • 2010/3/25 16:35

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Yeah maybe you're right Peekay, just was unsure where to post it and I figured here would be an ok place to start :)

Login

Who's Online

347 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 347


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits