git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
no more php-5.3 deprecated stuff
[plewww.git]
/
planetlab
/
nodes
/
comon.php
diff --git
a/planetlab/nodes/comon.php
b/planetlab/nodes/comon.php
index
5912eae
..
743ee02
100644
(file)
--- a/
planetlab/nodes/comon.php
+++ b/
planetlab/nodes/comon.php
@@
-14,7
+14,7
@@
require_once 'plc_functions.php';
// http://summer.cs.princeton.edu/
// "138.96.250.12"
function plc_ip_to_int ($ip) {
- $bytes=array_map("intval",
split("[.]
",$ip));
+ $bytes=array_map("intval",
explode(".
",$ip));
$res=0;
foreach (range(0,3) as $i) {
$res=256*$res+$bytes[$i];