Seite 1 von 1

ereg_replace() is deprecated in contenido session.inc

Verfasst: So 6. Sep 2009, 09:32
von euroblaze
Thanks for taking a look at my post.

I've just installed Contenido on Windows Vista XAMPP (PHP Version 5.3.0). Consistently these errors/warnings are thrown:

Code: Alles auswählen

 Deprecated: Function ereg_replace() is deprecated in C:\xampp\htdocs\Contenido_4.8.12\conlib\session.inc on line 328
and

Code: Alles auswählen

 Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\Contenido_4.8.12\contenido\includes\functions.con2.php on line 322
The errors occur on:
http://localhost/contenido_4.8.12/contenido/
http://localhost/contenido_4.8.12/cms/front_content.php

Would anyone know what the problem could be? I'm happy to provide further system/setup information if needed.

Thanks
Ashant

Re: ereg_replace() is deprecated in contenido session.inc

Verfasst: So 6. Sep 2009, 11:41
von Oldperl
Hello Ashant,

first, welcome to the Contenido Forum. :-)

Thanks for your bugreport. The PHP 5.3 bug is already known and we are working on a bugfix for that.
:arrow: http://forum.contenido.org/viewtopic.ph ... 32&start=0
Meanwhile try to use an older xampp version with php < v5.3.

regards from Franken/germany

Ortwin

Re: ereg_replace() is deprecated in contenido session.inc

Verfasst: Mo 7. Sep 2009, 09:32
von kummer
just a word about ereg_replace(). the function it deprecated and will not remain in php6. as long as you are using php5, ereg_replace (and similar functions) should work fine. deprecated does not mean, that the particular function does not work, but that it probably will not be supported in future version of php6. to solve your problem it should be enough to change the reporting level as the messages you get are only warnings.