From 1a1aa68ebc14321683c6deb52c3f214d1edc56c8 Mon Sep 17 00:00:00 2001 From: Dylan Geels Date: Sun, 7 Sep 2014 13:01:42 +0000 Subject: [PATCH 1/2] Function split() is deprecated --HG-- branch : Geels/join_shardphp-edited-online-with-bitbuck-1410094877054 --- code/web/public_php/ring/join_shard.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/web/public_php/ring/join_shard.php b/code/web/public_php/ring/join_shard.php index a14c6c40a..abc6aee7b 100644 --- a/code/web/public_php/ring/join_shard.php +++ b/code/web/public_php/ring/join_shard.php @@ -53,10 +53,10 @@ class JoinShardCb extends CRingSessionManagerWeb global $getShardListCallback; $onlineShardsBySessionId = array(); - $resultArray = split(';', $resultStr); + $resultArray = explode(';', $resultStr); foreach ($resultArray as $shardInfo) { - $shardAttr = split(',', $shardInfo); + $shardAttr = explode(',', $shardInfo); if (isset($shardAttr[1])) $onlineShardsBySessionId[$shardAttr[0]] = $shardAttr[1]; } @@ -120,7 +120,7 @@ function joinShardFromIdPost( $destSessionId ) function joinShardFromId( $userId, $domainId, $destSessionId ) { $domainInfo = getDomainInfo($domainId); - $addr = split(":", $domainInfo["session_manager_address"]); + $addr = explode(":", $domainInfo["session_manager_address"]); $RSMHost = $addr[0]; $RSMPort = $addr[1]; @@ -148,7 +148,7 @@ function joinShardFromId( $userId, $domainId, $destSessionId ) function getShardList($userId, $domainId) { $domainInfo = getDomainInfo($domainId); - $addr = split(":", $domainInfo["session_manager_address"]); + $addr = explode(":", $domainInfo["session_manager_address"]); $RSMHost = $addr[0]; $RSMPort = $addr[1]; @@ -223,7 +223,7 @@ function displayAllShards(&$onlineShardsBySessionId) function joinMainland($userId, $domainId) { $domainInfo = getDomainInfo($domainId); - $addr = split(":", $domainInfo["session_manager_address"]); + $addr = explode(":", $domainInfo["session_manager_address"]); $RSMHost = $addr[0]; $RSMPort = $addr[1];