xoops forums

culex

Module Developer
Posted on: 2010/3/14 23:57
culex
culex (Show more)
Module Developer
Posts: 705
Since: 2004/9/23
#1

Deprecated functions in php 5.30

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

Peekay

XOOPS is my life!
Posted on: 2010/3/25 16:28
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#2

Re: Deprecated functions in php 5.30

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.

culex

Module Developer
Posted on: 2010/3/25 16:35
culex
culex (Show more)
Module Developer
Posts: 705
Since: 2004/9/23
#3

Re: Deprecated functions in php 5.30

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