Test: /ext/standard/tests/strings/str_replace_variation2.phpt - Version 7.2.0-dev    

There are 2 different diffs reported by users for this test.

Count Diff
13 (76%)
007+ -- search string has found '' times
007- -- search string has found '2' times
014+ -- search string has found '' times
014- -- search string has found '2' times
021+ -- search string has found '' times
021- -- search string has found '1' times
028+ -- search string has found '' times
028- -- search string has found '0' times
035+ -- search string has found '' times
035- -- search string has found '1' times
042+ -- search string has found '' times
042- -- search string has found '0' times
049+ -- search string has found '' times
049- -- search string has found '0' times
056+ -- search string has found '' times
056- -- search string has found '1' times
063+ -- search string has found '' times
063- -- search string has found '0' times
070+ -- search string has found '' times
070- -- search string has found '2' times
077+ -- search string has found '' times
077- -- search string has found '1' times
084+ -- search string has found '' times
084- -- search string has found '0' times
091+ -- search string has found '' times
091- -- search string has found '1' times
098+ -- search string has found '' times
098- -- search string has found '4' times
105+ -- search string has found '' times
105- -- search string has found '4' times
112+ -- search string has found '' times
112- -- search string has found '0' times
119+ -- search string has found '' times
119- -- search string has found '29' times
126+ -- search string has found '' times
126- -- search string has found '3' times
133+ -- search string has found '' times
133- -- search string has found '1' times
140+ -- search string has found '' times
140- -- search string has found '1' times
147+ -- search string has found '' times
147- -- search string has found '1' times
154+ -- search string has found '' times
154- -- search string has found '1' times
161+ -- search string has found '' times
161- -- search string has found '3' times
168+ -- search string has found '' times
168- -- search string has found '1' times
175+ -- search string has found '' times
175- -- search string has found '3' times
182+ -- search string has found '' times
182- -- search string has found '3' times
189+ -- search string has found '' times
189- -- search string has found '0' times
196+ -- search string has found '' times
196- -- search string has found '1' times
203+ -- search string has found '' times
203- -- search string has found '29' times
210+ -- search string has found '' times
210- -- search string has found '1' times
217+ -- search string has found '' times
217- -- search string has found '2' times
224+ -- search string has found '' times
224- -- search string has found '0' times
231+ -- search string has found '' times
231- -- search string has found '3' times
238+ -- search string has found '' times
238- -- search string has found '0' times
243+ -- search string has found '' times
243- -- search string has found '1' times
4 (24%)
004+ Segmentation fault (core dumped)
004- string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
005- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!FOUND
006- ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
007- -- search string has found '2' times
006+ Termsig=11
009- --- Iteration 1 ---
010- -- String after replacing the search value is => --
011- string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
012- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!FOUND
013- ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
014- -- search string has found '2' times
015-
016- --- Iteration 2 ---
017- -- String after replacing the search value is => --
018- string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
019- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: FOUND
020- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
021- -- search string has found '1' times
022-
023- --- Iteration 3 ---
024- -- String after replacing the search value is => --
025- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
026- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
027- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
028- -- search string has found '0' times
029-
030- --- Iteration 4 ---
031- -- String after replacing the search value is => --
032- string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
033- [0x0]0ZCD[0x0]abcd \xXYZ abcd $FOUND: !!Hello, World
034- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
035- -- search string has found '1' times
036-
037- --- Iteration 5 ---
038- -- String after replacing the search value is => --
039- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
040- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
041- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
042- -- search string has found '0' times
043-
044- --- Iteration 6 ---
045- -- String after replacing the search value is => --
046- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
047- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
048- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
049- -- search string has found '0' times
050-
051- --- Iteration 7 ---
052- -- String after replacing the search value is => --
053- string(189) "Hello, world,0120333.3445FOUND67 NULL TRUE FALSE[0x0]
054- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
055- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
056- -- search string has found '1' times
057-
058- --- Iteration 8 ---
059- -- String after replacing the search value is => --
060- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
061- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
062- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
063- -- search string has found '0' times
064-
065- --- Iteration 9 ---
066- -- String after replacing the search value is => --
067- string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
068- [0x0]0ZCD[0x0]FOUND \xXYZ FOUND $$@#%^&*!~,.:;?: !!Hello, World
069- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
070- -- search string has found '2' times
071-
072- --- Iteration 10 ---
073- -- String after replacing the search value is => --
074- string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
075- [0x0]0ZCD[0x0]abcd \xFOUND abcd $$@#%^&*!~,.:;?: !!Hello, World
076- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
077- -- search string has found '1' times
078-
079- --- Iteration 11 ---
080- -- String after replacing the search value is => --
081- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
082- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
083- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
084- -- search string has found '0' times
085-
086- --- Iteration 12 ---
087- -- String after replacing the search value is => --
088- string(192) "Hello, world,0120333.3445-1.234567 FOUND TRUE FALSE[0x0]
089- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
090- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
091- -- search string has found '1' times
092-
093- --- Iteration 13 ---
094- -- String after replacing the search value is => --
095- string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE[0x0]
096- [0x0]FOUNDZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
097- ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)"
098- -- search string has found '4' times
099-
100- --- Iteration 14 ---
101- -- String after replacing the search value is => --
102- string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE[0x0]
103- [0x0]FOUNDZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
104- ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)"
105- -- search string has found '4' times
106-
107- --- Iteration 15 ---
108- -- String after replacing the search value is => --
109- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
110- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
111- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
112- -- search string has found '0' times
113-
114- --- Iteration 16 ---
115- -- String after replacing the search value is => --
116- string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE[0x0]
117- FOUND FOUNDFOUNDFOUNDFOUND[0x0]0ZCD[0x0]abcdFOUND\xXYZ abcdFOUND$$@#%^&*!~,.:;?:FOUND!!Hello,FOUNDWorldFOUND
118- FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
119- -- search string has found '29' times
120-
121- --- Iteration 17 ---
122- -- String after replacing the search value is => --
123- string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSEFOUND
124- FOUND0ZCDFOUNDabcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
125- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
126- -- search string has found '3' times
127-
128- --- Iteration 18 ---
129- -- String after replacing the search value is => --
130- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
131- FOUNDZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
132- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
133- -- search string has found '1' times
134-
135- --- Iteration 19 ---
136- -- String after replacing the search value is => --
137- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
138- [0x0]0FOUNDD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
139- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
140- -- search string has found '1' times
141-
142- --- Iteration 20 ---
143- -- String after replacing the search value is => --
144- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
145- FOUNDZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
146- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
147- -- search string has found '1' times
148-
149- --- Iteration 21 ---
150- -- String after replacing the search value is => --
151- string(194) "Hello, world,0120333FOUND445-1.234567 NULL TRUE FALSE[0x0]
152- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
153- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
154- -- search string has found '1' times
155-
156- --- Iteration 22 ---
157- -- String after replacing the search value is => --
158- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
159- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
160- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
161- -- search string has found '3' times
162-
163- --- Iteration 23 ---
164- -- String after replacing the search value is => --
165- string(192) "Hello, world,0120333.3445-1.234567 NULL FOUND FALSE[0x0]
166- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
167- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
168- -- search string has found '1' times
169-
170- --- Iteration 24 ---
171- -- String after replacing the search value is => --
172- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
173- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
174- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
175- -- search string has found '3' times
176-
177- --- Iteration 25 ---
178- -- String after replacing the search value is => --
179- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
180- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
181- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
182- -- search string has found '3' times
183-
184- --- Iteration 26 ---
185- -- String after replacing the search value is => --
186- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
187- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
188- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
189- -- search string has found '0' times
190-
191- --- Iteration 27 ---
192- -- String after replacing the search value is => --
193- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FOUND[0x0]
194- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
195- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
196- -- search string has found '1' times
197-
198- --- Iteration 28 ---
199- -- String after replacing the search value is => --
200- string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE[0x0]
201- FOUND FOUNDFOUNDFOUNDFOUND[0x0]0ZCD[0x0]abcdFOUND\xXYZ abcdFOUND$$@#%^&*!~,.:;?:FOUND!!Hello,FOUNDWorldFOUND
202- FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
203- -- search string has found '29' times
204-
205- --- Iteration 29 ---
206- -- String after replacing the search value is => --
207- string(186) "Hello, world,0120333.3445-1.234567FOUNDNULL TRUE FALSE[0x0]
208- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
209- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
210- -- search string has found '1' times
211-
212- --- Iteration 30 ---
213- -- String after replacing the search value is => --
214- string(199) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
215- [0x0]0ZCD[0x0]aFOUNDcd \xXYZ aFOUNDcd $$@#%^&*!~,.:;?: !!Hello, World
216- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
217- -- search string has found '2' times
218-
219- --- Iteration 31 ---
220- -- String after replacing the search value is => --
221- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
222- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
223- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
224- -- search string has found '0' times
225-
226- --- Iteration 32 ---
227- -- String after replacing the search value is => --
228- string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
229- FOUND [0x0]0ZCD[0x0]abcd \xXYZFOUNDabcd $$@#%^&*!~,.:;?: !!Hello, World
230- FOUND ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
231- -- search string has found '3' times
232-
233- --- Iteration 33 ---
234- -- String after replacing the search value is => --
235- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
236- [0x0]0ZCD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
237- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
238- -- search string has found '0' times
239-
240- --- Iteration 34 ---
241- -- String after replacing the search value is => --
242- string(5) "FOUND"
243- -- search string has found '1' times
244- ===DONE===