/hphp/test/zend/good/ext/standard/tests/strings/bug61764.php
PHP | 6 lines | 4 code | 0 blank | 2 comment | 0 complexity | d42fb14364ac5e9f324a3aae02ca3b31 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- //expected -30000 mod 2^32 = 4294937296, and not -30000
- //because we can represent 4294937296 with our PHP int type
- <<__EntryPoint>> function main(): void {
- print_r(unpack('I', pack('L', -30000)));
- }