Ticket #2202 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

Change deprecated Function Split()

Reported by: WM-IT-Service Owned by: benedikt
Priority: normal Milestone: ispCP ω 1.0.5
Component: Frontend (GUI) Version: ispCP ω 1.0.3
Severity: Don't know Keywords:
Cc:

Description (last modified by nuxwin) (diff)

Function split() ist deprecated in PHP 5.3.

The Alternatives are

  • preg_split (for regular expressions)
  • explode (devide by string).

In this case: Replace split wit explode:

File: /include/phpsysinfo/common_functions.php

Row 169: $arrArgs = split( ' ', $strArgs );

replace with

Row 169: $arrArgs = explode( ' ', $strArgs );

File: /include/phpsysinfo/class.Linux.inc.php

Row116: $ar_buf = split( ' ', $buf );

replace with

Row 116: $ar_buf = explode( ' ', $buf );

Change History

comment:1 Changed 2 years ago by benedikt

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone changed from Working to ispCP ω 1.0.5

duplicate of #2053

comment:2 Changed 2 years ago by nuxwin

  • Status changed from closed to reopened
  • Resolution duplicate deleted

comment:3 Changed 2 years ago by nuxwin

  • Owner set to benedikt
  • Status changed from reopened to new

comment:4 Changed 2 years ago by nuxwin

  • Status changed from new to closed
  • Resolution set to duplicate

comment:5 Changed 2 years ago by nuxwin

  • Summary changed from Change depricated Function Split() to Change deprecated Function Split()

comment:6 Changed 2 years ago by nuxwin

  • Description modified (diff)
Note: See TracTickets for help on using tickets.