Skip to content
Snippets Groups Projects
Commit c089030f authored by Olav Morken's avatar Olav Morken
Browse files

Replace split(...) with explode(...) as split is depreceated from PHP 5.3.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1678 44740490-163a-0410-bde0-09ae8108e29a
parent ec5d2a85
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ class SimpleSAML_AuthMemCookie { ...@@ -114,7 +114,7 @@ class SimpleSAML_AuthMemCookie {
$memcache = new Memcache; $memcache = new Memcache;
foreach (split(",",$memcacheHost) as $memcacheHost) { foreach (explode(',', $memcacheHost) as $memcacheHost) {
$memcache->addServer($memcacheHost, $memcachePort); $memcache->addServer($memcacheHost, $memcachePort);
} }
......
...@@ -596,7 +596,7 @@ class SimpleSAML_Utilities { ...@@ -596,7 +596,7 @@ class SimpleSAML_Utilities {
*/ */
static function ipCIDRcheck($cidr, $ip = null) { static function ipCIDRcheck($cidr, $ip = null) {
if ($ip == null) $ip = $_SERVER['REMOTE_ADDR']; if ($ip == null) $ip = $_SERVER['REMOTE_ADDR'];
list ($net, $mask) = split ("/", $cidr); list ($net, $mask) = explode('/', $cidr);
$ip_net = ip2long ($net); $ip_net = ip2long ($net);
$ip_mask = ~((1 << (32 - $mask)) - 1); $ip_mask = ~((1 << (32 - $mask)) - 1);
...@@ -1309,8 +1309,8 @@ class SimpleSAML_Utilities { ...@@ -1309,8 +1309,8 @@ class SimpleSAML_Utilities {
assert('is_string($query_string)'); assert('is_string($query_string)');
$res = array(); $res = array();
foreach(split('&', $query_string) as $param) { foreach(explode('&', $query_string) as $param) {
$param = split('=', $param); $param = explode('=', $param);
$name = urldecode($param[0]); $name = urldecode($param[0]);
if(count($param) === 1) { if(count($param) === 1) {
$value = ''; $value = '';
......
...@@ -107,8 +107,8 @@ if (isset($_GET['wa'])) { ...@@ -107,8 +107,8 @@ if (isset($_GET['wa'])) {
try { try {
// accomodate for disfunctional $_GET "windows" slash decoding in PHP // accomodate for disfunctional $_GET "windows" slash decoding in PHP
$wctx = $_GET['wctx']; $wctx = $_GET['wctx'];
foreach (split('&', $_SERVER['REQUEST_URI']) as $e) { foreach (explode('&', $_SERVER['REQUEST_URI']) as $e) {
$a = split('=', $e); $a = explode('=', $e);
if ($a[0] == 'wctx') $wctx = urldecode($a[1]); if ($a[0] == 'wctx') $wctx = urldecode($a[1]);
} }
$requestid = $wctx; $requestid = $wctx;
......
...@@ -32,7 +32,7 @@ class sspmod_statistics_LogParser { ...@@ -32,7 +32,7 @@ class sspmod_statistics_LogParser {
public function parseContent($line) { public function parseContent($line) {
$contentstr = substr($line, $this->offset); $contentstr = substr($line, $this->offset);
$content = split(' ', $contentstr); $content = explode(' ', $contentstr);
return $content; return $content;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment