Page 1 of 1

Function eregi() is deprecated error using php 5.3

Posted: Wed Dec 09, 2009 3:10 am
by hrkama
Hello!

I have installed kolab2 mailserver on openSUSE 11.2. + Horde web mail client (works on php5.3).

It seems that everything works, but there is one small problem:

Every time I sent an e-mail I get an error in the /var/log/kolab/filter.log file

Dec 08 15:38:03 Kolab Filter (pid=12846) [error] [horde] PHP Error: Function eregi() is deprecated; Code: 0 [on line 146 of "/usr/share/php5/PEAR/Horde/Kolab/Filter/Response.php"]

Can anyone help me with this error? I also attached Response.php

Many thanks!
Hrkama.

Re: Function eregi() is deprecated error using php 5.3

Posted: Wed Dec 09, 2009 4:07 am
by requinix
You should start using the PCRE functions, such as preg_match, instead of the ereg functions because they will be removed in future versions of PHP.

1) It's more convenient for us if you post the code inline and not attached.
2) Only post the relevant sections.