Find a replacement for ereg_replace(), and use it.

-----Original Message-----
From: Timothy
Sent:  07/21/2010 10:27:07 PM
Subject:  [ossec-list] Re: Web UI

Hi with reference to my previous post, I made it home and I am posting
a bunch of the php errors


Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 366

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 329

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 330

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 361

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 362

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 365

Deprecated: Function ereg_replace() is deprecated in /var/www/ossec/
lib/os_lib_alerts.php on line 366

Is there a simple fix for these.


On Jul 20, 12:51 pm, B/K Walker <[email protected]> wrote:

> On Tue, 20 Jul 2010 07:11:20 -0700 (PDT) Timothy <[email protected]> 
> wrote:
>
> > I have ossec installed on a wide variety of machines, mostly windows,
> > but some linux. I am using the web user interface and for some reason
> > I am getting a huge number of php errors with listings of deprecated
> > functions, I need to fix these before I can concentrate on the
> > configuration issues with the other machines, I can get the exact
> > verbage when I reach home, has anyone seen these messages and could
> > possibly grant me a clue as to where I can go to correct. Thanks
>
> For a quick fix, you can change the setting for what errors PHP returns.  You 
> can either add "php_value display_errors 0" to .htaccess, add 
> error_reporting(); to the php files throwing errors (or an include) perhaps 
> error_reporting(E_ERROR); so that real errors continue to be displayed (I 
> suspect the deprecated messages are warnings).
>
> I suspect that the web UI doesn't get the 'lovin' it needs and it's simply 
> not up to speed with the latest PHP.
>
> --
> I invented skydiving in 1989!

Reply via email to