From cfbfd9412b70bda8c34127b8b7dfdceff4872390 Mon Sep 17 00:00:00 2001 From: smos Date: Thu, 19 Jan 2012 20:33:41 +0100 Subject: The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone. Replacing it surpresses all the warnings --- usr/local/www/diag_dump_states.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/diag_dump_states.php') diff --git a/usr/local/www/diag_dump_states.php b/usr/local/www/diag_dump_states.php index 5ed855d..b368542 100755 --- a/usr/local/www/diag_dump_states.php +++ b/usr/local/www/diag_dump_states.php @@ -187,9 +187,9 @@ if(count($states) > 0) { /* break up info and extract $srcip and $dstip */ $ends = preg_split("/\?/", $info); - $parts = split(":", $ends[0]); + $parts = explode(":", $ends[0]); $srcip = trim($parts[0]); - $parts = split(":", $ends[count($ends) - 1]); + $parts = explode(":", $ends[count($ends) - 1]); $dstip = trim($parts[0]); echo " -- cgit v1.1