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