TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
350 B
25 lines
350 B
--TEST--
|
|
Bug #38770 (unpack() broken with longs on 64 bit machines)
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
foreach (array('N','l') as $v) {
|
|
print_r(unpack($v, pack($v, -30000)));
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
Array
|
|
(
|
|
[1] => 4294937296
|
|
)
|
|
Array
|
|
(
|
|
[1] => -30000
|
|
)
|
|
Done
|
|
|