Ticket #2202 (closed defect: duplicate)
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
Note: See
TracTickets for help on using
tickets.
