1--TEST--
2Bug #61764: 'I' unpacks n as signed if n > 2^31-1 on LP64
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--FILE--
8<?php
9//expected -30000 mod 2^32 = 4294937296, and not -30000
10//because we can represent 4294937296 with our PHP int type
11print_r(unpack('I', pack('L', -30000)));
12?>
13--EXPECT--
14Array
15(
16    [1] => 4294937296
17)
18