PHP Deprecated: Function split() is deprecated in /usr/local/ispconfig/interface/lib

Discussion in 'Installation/Configuration' started by guimnk, Apr 5, 2011.

  1. guimnk

    guimnk Member

    Hi,

    I get this message today:

    Code:
    PHP Deprecated:  Function split() is deprecated in /usr/local/ispconfig/interface/lib/classes/validate_cron.inc.php
    
    How can I do to fix it??

    Thanks
     
  2. guimnk

    guimnk Member

    Other error:

    Code:
    PHP Deprecated:  Call-time pass-by-reference has been deprecated in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 199, referer: http://domain.com:8080/index.php
    
     
  3. guimnk

    guimnk Member

    I'm trying to change to preg_split()
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats all ok, no need to fix something. What you get are developer notices from PHp, this does not mean that there are any problems or that the software odes not work.

    You can turn of these notices in the php.ini file.
     
  5. guimnk

    guimnk Member

    I only change split function to preg_split and all be done..

    Code:
    $time_list = split(",", $field_value);
    
    to

    Code:
    $time_list = preg_split("/,/", $field_value);
    
    Thanks
     

Share This Page