optional integer overflow logging/exception (#8585)
[hiphop-php.git] / hphp / test / slow / int_overflow / inc_dec_0.php.expectf
blobbfa13312f2a13d379fbf2929d87e25544721e1e7
1 ++(9223372036854775807) = -9223372036854775808 (-9223372036854775808)
2 ++('9223372036854775807') = -9223372036854775808 (-9223372036854775808)
3 (9223372036854775807)++ = 9223372036854775807 (-9223372036854775808)
4 ('9223372036854775807')++ = '9223372036854775807' (-9223372036854775808)
5 --(-9223372036854775808) = 9223372036854775807 (9223372036854775807)
6 --('-9223372036854775808') = 9223372036854775807 (9223372036854775807)
7 (-9223372036854775808)-- = -9223372036854775808 (9223372036854775807)
8 ('-9223372036854775808')-- = '-9223372036854775808' (9223372036854775807)
9 array post inc
10 (-9223372036854775808)++ = -9223372036854775808 (-9223372036854775807)
11 (9223372036854775807)++ = 9223372036854775807 (-9223372036854775808)
12 (-4)++ = -4 (-3)
13 (0)++ = 0 (1)
14 (5)++ = 5 (6)
15 ('12')++ = '12' (13)
16 (5.2)++ = 5.2 (6.2)
17 ('1.5')++ = '1.5' (2.5)
19 Notice: Increment on string 'abc' in %s/inc_dec_0.php on line 113
20 ('abc')++ = 'abc' ('abd')
21 ('')++ = '' ('1')
22 (NULL)++ = NULL (1)
23 array pre inc
24 ++(-9223372036854775808) = -9223372036854775807 (-9223372036854775807)
25 ++(9223372036854775807) = -9223372036854775808 (-9223372036854775808)
26 ++(-4) = -3 (-3)
27 ++(0) = 1 (1)
28 ++(5) = 6 (6)
29 ++('12') = 13 (13)
30 ++(5.2) = 6.2 (6.2)
31 ++('1.5') = 2.5 (2.5)
33 Notice: Increment on string 'abc' in %s/inc_dec_0.php on line 125
34 ++('abc') = 'abd' ('abd')
35 ++('') = '1' ('1')
36 ++(NULL) = 1 (1)
37 array post dec
38 (-9223372036854775808)-- = -9223372036854775808 (9223372036854775807)
39 (9223372036854775807)-- = 9223372036854775807 (9223372036854775806)
40 (-4)-- = -4 (-5)
41 (0)-- = 0 (-1)
42 (5)-- = 5 (4)
43 ('12')-- = '12' (11)
44 (5.2)-- = 5.2 (4.2)
45 ('1.5')-- = '1.5' (0.5)
47 Notice: Decrement on string 'abc' in %s/inc_dec_0.php on line 137
48 ('abc')-- = 'abc' ('abc')
49 ('')-- = '' (-1)
50 (NULL)-- = NULL (NULL)
51 array pre dec
52 --(-9223372036854775808) = 9223372036854775807 (9223372036854775807)
53 --(9223372036854775807) = 9223372036854775806 (9223372036854775806)
54 --(-4) = -5 (-5)
55 --(0) = -1 (-1)
56 --(5) = 4 (4)
57 --('12') = 11 (11)
58 --(5.2) = 4.2 (4.2)
59 --('1.5') = 0.5 (0.5)
61 Notice: Decrement on string 'abc' in %s/inc_dec_0.php on line 149
62 --('abc') = 'abc' ('abc')
63 --('') = -1 (-1)
64 --(NULL) = NULL (NULL)
65 properties
66 C->max++ = -9223372036854775808 (9223372036854775807)
67 ++C->max = -9223372036854775808 (-9223372036854775808)
68 C->min-- = 9223372036854775807 (-9223372036854775808)
69 --C->min = 9223372036854775807 (9223372036854775807)
70 C->max += 1 -> -9223372036854775808
71 C->min -= 1 -> 9223372036854775807
72 C->max *= 2 -> -2