ereg and magic_quotes errors

I just recently noticed I've been getting the following errors ...


[error] PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in inc/header.inc.php on line 186
[error] PHP Deprecated:  Function ereg() is deprecated in ray/XML.php on line 24

Don't know if it makes a difference but I use PHP5.3 and magic quotes gpc/runtime/sybase are "on".

I really have no idea what to do. I know ereg was replaced by preg_match but I have no idea how to implement it correctly.

Anyone have any ideas?

Quote · 7 Dec 2009

Anyone have some ideas?

Quote · 12 Dec 2009

Hi, deprecated means that this instruction will be removed in PHP 6.

 

ereg will become preg.... as for implementing it, all you need to do is change it.

 

if you don't want to see the 'deprecated' warnings turn error reporting off.

 

Stuart

There are none so blind as those that will not see.
Quote · 12 Dec 2009

I stopped it from displaying on the site as errors, but it still shows in my server log. How do I get it to stop kicking those errors out on server logs?

Thank you for replying.

Quote · 12 Dec 2009

php.ini

display_errors = Off
display_startup_errors = Off
log_errors = Off

Quote · 12 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.