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