1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/tests/lang/bug24054.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

25 lines
463 B
PHP

--TEST--
Bug #24054 (Assignment operator *= broken)
--FILE--
<?php
define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF);
define('LONG_MIN', -LONG_MAX - 1);
printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ),
is_int(LONG_MIN-1),is_int(LONG_MAX+1));
$i = LONG_MAX;
$j = $i * 1001;
$i *= 1001;
$tests = <<<TESTS
$i === $j
TESTS;
include(__DIR__ . '/../quicktester.inc');
?>
--EXPECT--
1,1,0,0
OK