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