1--TEST--
2Bug #38770 (unpack() broken with longs on 64 bit machines)
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--FILE--
8<?php
9
10foreach (array('N','l') as $v) {
11    print_r(unpack($v, pack($v, -30000)));
12}
13
14echo "Done\n";
15?>
16--EXPECT--
17Array
18(
19    [1] => 4294937296
20)
21Array
22(
23    [1] => -30000
24)
25Done
26