1--TEST--
2Test ip2long() function : usage variation 2, 32 bit
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) { die('skip 32 bit only'); }
6if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') { die('skip not for AIX'); }
7?>
8--FILE--
9<?php
10$ips = array(
11    "1.1.011.011",
12    "127.0.0.1",
13    "1.1.071.071",
14    "0.0.0.0",
15    "1.1.081.081",
16    "192.168.0.0",
17    "256.0.0.1",
18    "192.168.0xa.5",
19);
20
21foreach($ips as $ip) {
22    var_dump(ip2long($ip));
23}
24
25?>
26--EXPECT--
27bool(false)
28int(2130706433)
29bool(false)
30int(0)
31bool(false)
32int(-1062731776)
33bool(false)
34bool(false)
35