1--TEST--
2Invalid numeric string E_WARNINGs and E_NOTICEs
3--FILE--
4<?php
5
6var_dump("2 Lorem" + "3 ipsum");
7var_dump("dolor" + "sit");
8echo "---", PHP_EOL;
9var_dump("5 amet," - "7 consectetur");
10var_dump("adipiscing" - "elit,");
11echo "---", PHP_EOL;
12var_dump("11 sed" * "13 do");
13var_dump("eiusmod" * "tempor");
14echo "---", PHP_EOL;
15var_dump("17 incididunt" / "19 ut");
16var_dump("labore" / "et");
17echo "---", PHP_EOL;
18var_dump("23 dolore" ** "29 magna");
19var_dump("aliqua." ** "Ut");
20echo "---", PHP_EOL;
21var_dump("31 enim" % "37 ad");
22try {
23    var_dump("minim" % "veniam,");
24} catch (DivisionByZeroError $e) {
25}
26echo "---", PHP_EOL;
27var_dump("41 minim" << "43 veniam,");
28var_dump("quis" << "nostrud");
29echo "---", PHP_EOL;
30var_dump("47 exercitation" >> "53 ullamco");
31var_dump("laboris" >> "nisi");
32echo "---", PHP_EOL;
33var_dump("59 ut" | 61);
34var_dump(67 | "71 aliquip");
35var_dump("ex" | 73);
36var_dump(79 | "ea");
37echo "---", PHP_EOL;
38var_dump("83 commodo" & 89);
39var_dump(97 & "101 consequat.");
40var_dump("Duis" & 103);
41var_dump(107 & "aute");
42echo "---", PHP_EOL;
43var_dump("109 irure" ^ 113);
44var_dump(127 ^ "131 dolor");
45var_dump("in" ^ 137);
46var_dump(139 ^ "reprehenderit");
47echo "---", PHP_EOL;
48var_dump(+"149 in");
49var_dump(+"voluptate");
50echo "---", PHP_EOL;
51var_dump(-"151 velit");
52var_dump(-"esse");
53?>
54--EXPECTF--
55Notice: A non well formed numeric value encountered in %s on line %d
56
57Notice: A non well formed numeric value encountered in %s on line %d
58int(5)
59
60Warning: A non-numeric value encountered in %s on line %d
61
62Warning: A non-numeric value encountered in %s on line %d
63int(0)
64---
65
66Notice: A non well formed numeric value encountered in %s on line %d
67
68Notice: A non well formed numeric value encountered in %s on line %d
69int(-2)
70
71Warning: A non-numeric value encountered in %s on line %d
72
73Warning: A non-numeric value encountered in %s on line %d
74int(0)
75---
76
77Notice: A non well formed numeric value encountered in %s on line %d
78
79Notice: A non well formed numeric value encountered in %s on line %d
80int(143)
81
82Warning: A non-numeric value encountered in %s on line %d
83
84Warning: A non-numeric value encountered in %s on line %d
85int(0)
86---
87
88Notice: A non well formed numeric value encountered in %s on line %d
89
90Notice: A non well formed numeric value encountered in %s on line %d
91float(0.89473684210526)
92
93Warning: A non-numeric value encountered in %s on line %d
94
95Warning: A non-numeric value encountered in %s on line %d
96
97Warning: Division by zero in %s on line %d
98float(NAN)
99---
100
101Notice: A non well formed numeric value encountered in %s on line %d
102
103Notice: A non well formed numeric value encountered in %s on line %d
104float(3.0910586430935E+39)
105
106Warning: A non-numeric value encountered in %s on line %d
107
108Warning: A non-numeric value encountered in %s on line %d
109int(1)
110---
111
112Notice: A non well formed numeric value encountered in %s on line %d
113
114Notice: A non well formed numeric value encountered in %s on line %d
115int(31)
116
117Warning: A non-numeric value encountered in %s on line %d
118
119Warning: A non-numeric value encountered in %s on line %d
120---
121
122Notice: A non well formed numeric value encountered in %s on line %d
123
124Notice: A non well formed numeric value encountered in %s on line %d
125int(%d)
126
127Warning: A non-numeric value encountered in %s on line %d
128
129Warning: A non-numeric value encountered in %s on line %d
130int(0)
131---
132
133Notice: A non well formed numeric value encountered in %s on line %d
134
135Notice: A non well formed numeric value encountered in %s on line %d
136int(0)
137
138Warning: A non-numeric value encountered in %s on line %d
139
140Warning: A non-numeric value encountered in %s on line %d
141int(0)
142---
143
144Notice: A non well formed numeric value encountered in %s on line %d
145int(63)
146
147Notice: A non well formed numeric value encountered in %s on line %d
148int(71)
149
150Warning: A non-numeric value encountered in %s on line %d
151int(73)
152
153Warning: A non-numeric value encountered in %s on line %d
154int(79)
155---
156
157Notice: A non well formed numeric value encountered in %s on line %d
158int(81)
159
160Notice: A non well formed numeric value encountered in %s on line %d
161int(97)
162
163Warning: A non-numeric value encountered in %s on line %d
164int(0)
165
166Warning: A non-numeric value encountered in %s on line %d
167int(0)
168---
169
170Notice: A non well formed numeric value encountered in %s on line %d
171int(28)
172
173Notice: A non well formed numeric value encountered in %s on line %d
174int(252)
175
176Warning: A non-numeric value encountered in %s on line %d
177int(137)
178
179Warning: A non-numeric value encountered in %s on line %d
180int(139)
181---
182
183Notice: A non well formed numeric value encountered in %s on line %d
184int(149)
185
186Warning: A non-numeric value encountered in %s on line %d
187int(0)
188---
189
190Notice: A non well formed numeric value encountered in %s on line %d
191int(-151)
192
193Warning: A non-numeric value encountered in %s on line %d
194int(0)
195