apprentice workflow completed
[brisk.git] / test / ip_test.php
diff --git a/test/ip_test.php b/test/ip_test.php
new file mode 100755 (executable)
index 0000000..f2660c5
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/php
+<?php
+$a = array("127.0.0.1", "255.255.255.255", "255.255.0.0" );
+
+printf("INT_SIZE: %d\n", PHP_INT_SIZE);
+foreach ($a as $i) {
+    printf("VAL: %016x\n", ip2long($i));
+}
+
+?>
\ No newline at end of file