LetoDMS Community Forum
Function "split" and "eregi_replace" deprecated - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: Function "split" and "eregi_replace" deprecated (/showthread.php?tid=188)



Function "split" and "eregi_replace" deprecated - Daniel - 10-19-2010

Hi,

I just had to modify my php.ini file which seems to cause that PHP now works as it should. These messages not appeared before editing the file.

Issues : deprecated messages from PHP while displaying the search result.
Steps to get the error msg : Use the search field and type any word you want to search. The messages will be shown but the results will be shown anyway.

Error msg :

Deprecated: Function split() is deprecated in /volume1/web/docu/op/op.Search.php on line 93

Deprecated: Function eregi_replace() is deprecated in /volume1/web/docu/op/op.Search.php on line 96

Deprecated: Function split() is deprecated in /volume1/web/docu/op/op.Search.php on line 93

Deprecated: Function eregi_replace() is deprecated in /volume1/web/docu/op/op.Search.php on line 96

LetoDMS Version : V 2.01
LetoDMS Installed URL : ( optional)
PHP version : 5.3.2
MYSQL Version : 5.1.49

Windows or Linux Server : Linux

have you followed the installation instructions from LetoDMS ( yes) (no): No instructions found to remove this error.

As the system works perfectly i don't add my settings file. According to the PHP website the function is deprecated since 5.3.0, see here:
http://us3.php.net/manual/en/function.split.php

Is there a replacement of this function planned with a new release?

Regards



RE: Function "split" and "eregi_replace" deprecated - matteo lucarelli - 10-21-2010

For sure we'll remove them on the next release


RE: Function "split" and "eregi_replace" deprecated - zaguar - 03-11-2011

My problem was:
Deprecated: Function split() is deprecated in C:\xampp\htdocs\letodms\Core\inc.ClassDMS.php on line 415

I changed the function split() with explode(). And it works in this case. May it helps you.