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--FILE--
6<?php
7/* Prototype  : int ip2long(string ip_address)
8 * Description: Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
9 * Source code: ext/standard/basic_functions.c
10 * Alias to functions:
11 */
12
13$ips = array(
14	"1.1.011.011",
15	"127.0.0.1",
16	"1.1.071.071",
17	"0.0.0.0",
18	"1.1.081.081",
19	"192.168.0.0",
20	"256.0.0.1",
21	"192.168.0xa.5",
22);
23
24foreach($ips as $ip) {
25	var_dump(ip2long($ip));
26}
27
28?>
29===DONE===
30--EXPECT--
31bool(false)
32int(2130706433)
33bool(false)
34int(0)
35bool(false)
36int(-1062731776)
37bool(false)
38bool(false)
39===DONE===
40