mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
26 lines
283 B
Plaintext
26 lines
283 B
Plaintext
|
--TEST--
|
||
|
Bug #38770 (unpack() broken with longs on 64 bit machines)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
foreach (array('N','I','l') as $v) {
|
||
|
print_r(unpack($v, pack($v, -30000)));
|
||
|
}
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Array
|
||
|
(
|
||
|
[1] => -30000
|
||
|
)
|
||
|
Array
|
||
|
(
|
||
|
[1] => -30000
|
||
|
)
|
||
|
Array
|
||
|
(
|
||
|
[1] => -30000
|
||
|
)
|
||
|
Done
|