File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
bug24054.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: Bug #24054 (Assignment operator *= broken)
3: --FILE--
4: <?php // $Id: bug24054.phpt,v 1.1.1.2 2012/05/29 12:34:34 misho Exp $
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>