Annotation of embedaddon/php/tests/lang/bug24054.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #24054 (Assignment operator *= broken)
3: --FILE--
1.1.1.2 ! misho 4: <?php // $Id$
1.1 misho 5:
6: define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF);
7: define('LONG_MIN', -LONG_MAX - 1);
8: printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ),
9: is_int(LONG_MIN-1),is_int(LONG_MAX+1));
10:
11: $i = LONG_MAX;
12:
13: $j = $i * 1001;
14: $i *= 1001;
15:
16: $tests = <<<TESTS
17: $i === $j
18: TESTS;
19:
20: include(dirname(__FILE__) . '/../quicktester.inc');
21:
22: --EXPECT--
23: 1,1,0,0
24: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>