Author Topic: Deprecated function split()  (Read 8477 times)

0 Members and 1 Guest are viewing this topic.

san5630

  • Jr. Member
  • **
  • Posts: 2
Deprecated function split()
« on: August 24, 2009, 04:23:58 PM »
Hi everyone
im newbie and i try to install the program, and all the time apears this:
"Deprecated: Function split() is deprecated in C:\Archivos de programa\EasyPHP5.3.0\www\webim\libs\common.php on line 164"

The version of php is 5.3 and i read this function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

What can i do?
Thanks and sorry for my bad english.

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: Deprecated function split()
« Reply #1 on: August 24, 2009, 09:01:40 PM »
Replace split with preg_split, and enclose first argument into // (perl-regexps).
Ie.
split("," .....
is replaced by
preg_split("/,/" ....

Found 4 places in the source. Fixed locally for 1.6.3.

Thanks for the report!

san5630

  • Jr. Member
  • **
  • Posts: 2
Re: Deprecated function split()
« Reply #2 on: August 26, 2009, 09:16:54 PM »
Thanks inspirer.
Im gonna replace that part like you say.
Thanks for your help.