php-src/Zend/tests/zend_signed_multiply-32bit.phpt

15 lines
280 B
Plaintext
Raw Normal View History

--TEST--
Zend signed multiply 32-bit
--SKIPIF--
2013-01-18 07:12:51 +00:00
<?php if ((1 << 31) > 0) print "skip Running on 64-bit target"; ?>
--FILE--
<?php
var_dump(0x8000 * -0xffff);
var_dump(0x8001 * 0xfffe);
var_dump(0x8001 * -0xffff);
?>
--EXPECTF--
int(-2147450880)
int(2147483646)
float(-2147516415)