Test: /ext/standard/tests/file/fread_basic.phpt - Version 5.4.7-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
078- int(0)
079- bool(false)
080- Reading 1030 bytes from file, expecting 1024 bytes ... OK
081- int(1024)
082- bool(true)
083- string(32) "950b7457d1deb6332f2fc5d42f3129d6"
084- bool(true)
085- int(0)
086- bool(false)
087- Reading 1000 bytes from file, expecting 1000 bytes ... OK
088- int(1000)
089- bool(false)
090- string(32) "4501f99f2b79d0345f26f1394aca58a3"
091- bool(true)
092- -- File opened in mode r+b --
093- int(0)
094- bool(false)
095- Reading 1024 bytes from file, expecting 1024 bytes ... OK
096- int(1024)
097- bool(false)
098- string(32) "950b7457d1deb6332f2fc5d42f3129d6"
099- bool(true)
100- int(0)
101- bool(false)
102- Reading 1030 bytes from file, expecting 1024 bytes ... OK
103- int(1024)
104- bool(true)
105- string(32) "950b7457d1deb6332f2fc5d42f3129d6"
106- bool(true)
107- int(0)
108- bool(false)
109- Reading 1000 bytes from file, expecting 1000 bytes ... OK
110- int(1000)
111- bool(false)
112- string(32) "4501f99f2b79d0345f26f1394aca58a3"
113- bool(true)
114- -- File opened in mode r+t --
115- int(0)
116- bool(false)
117- Reading 1024 bytes from file, expecting 1024 bytes ... OK
118- int(1024)
119- bool(false)
120- string(32) "950b7457d1deb6332f2fc5d42f3129d6"
121- bool(true)
122- int(0)
123- bool(false)
124- Reading 1030 bytes from file, expecting 1024 bytes ... OK
125- int(1024)
126- bool(true)
127- string(32) "950b7457d1deb6332f2fc5d42f3129d6"
128- bool(true)
129- int(0)
130- bool(false)
131- Reading 1000 bytes from file, expecting 1000 bytes ... OK
132- int(1000)
133- bool(false)
134- string(32) "4501f99f2b79d0345f26f1394aca58a3"
135- bool(true)
136-
137- -- Testing fread) with file having data of type text --
138- -- File opened in mode r --
139- int(0)
140- bool(false)
141- Reading 1024 bytes from file, expecting 1024 bytes ... OK
142- int(1024)
143- bool(false)
144- string(32) "e486000c4c8452774f746a27658d87fa"
145- bool(true)
146- int(0)
147- bool(false)
148- Reading 1030 bytes from file, expecting 1024 bytes ... OK
149- int(1024)
150- bool(true)
151- string(32) "e486000c4c8452774f746a27658d87fa"
152- bool(true)
153- int(0)
154- bool(false)
155- Reading 1000 bytes from file, expecting 1000 bytes ... OK
156- int(1000)
157- bool(false)
158- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
159- bool(true)
160- -- File opened in mode rb --
161- int(0)
162- bool(false)
163- Reading 1024 bytes from file, expecting 1024 bytes ... OK
164- int(1024)
165- bool(false)
166- string(32) "e486000c4c8452774f746a27658d87fa"
167- bool(true)
168- int(0)
169- bool(false)
170- Reading 1030 bytes from file, expecting 1024 bytes ... OK
171- int(1024)
172- bool(true)
173- string(32) "e486000c4c8452774f746a27658d87fa"
174- bool(true)
175- int(0)
176- bool(false)
177- Reading 1000 bytes from file, expecting 1000 bytes ... OK
178- int(1000)
179- bool(false)
180- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
181- bool(true)
182- -- File opened in mode rt --
183- int(0)
184- bool(false)
185- Reading 1024 bytes from file, expecting 1024 bytes ... OK
186- int(1024)
187- bool(false)
188- string(32) "e486000c4c8452774f746a27658d87fa"
189- bool(true)
190- int(0)
191- bool(false)
192- Reading 1030 bytes from file, expecting 1024 bytes ... OK
193- int(1024)
194- bool(true)
195- string(32) "e486000c4c8452774f746a27658d87fa"
196- bool(true)
197- int(0)
198- bool(false)
199- Reading 1000 bytes from file, expecting 1000 bytes ... OK
200- int(1000)
201- bool(false)
202- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
203- bool(true)
204- -- File opened in mode r+ --
205- int(0)
206- bool(false)
207- Reading 1024 bytes from file, expecting 1024 bytes ... OK
208- int(1024)
209- bool(false)
210- string(32) "e486000c4c8452774f746a27658d87fa"
211- bool(true)
212- int(0)
213- bool(false)
214- Reading 1030 bytes from file, expecting 1024 bytes ... OK
215- int(1024)
216- bool(true)
217- string(32) "e486000c4c8452774f746a27658d87fa"
218- bool(true)
219- int(0)
220- bool(false)
221- Reading 1000 bytes from file, expecting 1000 bytes ... OK
222- int(1000)
223- bool(false)
224- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
225- bool(true)
226- -- File opened in mode r+b --
227- int(0)
228- bool(false)
229- Reading 1024 bytes from file, expecting 1024 bytes ... OK
230- int(1024)
231- bool(false)
232- string(32) "e486000c4c8452774f746a27658d87fa"
233- bool(true)
234- int(0)
235- bool(false)
236- Reading 1030 bytes from file, expecting 1024 bytes ... OK
237- int(1024)
238- bool(true)
239- string(32) "e486000c4c8452774f746a27658d87fa"
240- bool(true)
241- int(0)
242- bool(false)
243- Reading 1000 bytes from file, expecting 1000 bytes ... OK
244- int(1000)
245- bool(false)
246- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
247- bool(true)
248- -- File opened in mode r+t --
249- int(0)
250- bool(false)
251- Reading 1024 bytes from file, expecting 1024 bytes ... OK
252- int(1024)
253- bool(false)
254- string(32) "e486000c4c8452774f746a27658d87fa"
255- bool(true)
256- int(0)
257- bool(false)
258- Reading 1030 bytes from file, expecting 1024 bytes ... OK
259- int(1024)
260- bool(true)
261- string(32) "e486000c4c8452774f746a27658d87fa"
262- bool(true)
263- int(0)
264- bool(false)
265- Reading 1000 bytes from file, expecting 1000 bytes ... OK
266- int(1000)
267- bool(false)
268- string(32) "2ec76a59f8c44b8f8a0f5139f61bb1bd"
269- bool(true)
270-
271- -- Testing fread) with file having data of type text_with_new_line --
272- -- File opened in mode r --
273- int(0)
274- bool(false)
275- Reading 1024 bytes from file, expecting 1024 bytes ... OK
276- int(1024)
277- bool(false)
278- string(32) "b09c8026a64a88d36d4c2f17983964bb"
279- bool(true)
280- int(0)
281- bool(false)
282- Reading 1030 bytes from file, expecting 1024 bytes ... OK
283- int(1024)
284- bool(true)
285- string(32) "b09c8026a64a88d36d4c2f17983964bb"
286- bool(true)
287- int(0)
288- bool(false)
289- Reading 1000 bytes from file, expecting 1000 bytes ... OK
290- int(1000)
291- bool(false)
292- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
293- bool(true)
294- -- File opened in mode rb --
295- int(0)
296- bool(false)
297- Reading 1024 bytes from file, expecting 1024 bytes ... OK
298- int(1024)
299- bool(false)
300- string(32) "b09c8026a64a88d36d4c2f17983964bb"
301- bool(true)
302- int(0)
303- bool(false)
304- Reading 1030 bytes from file, expecting 1024 bytes ... OK
305- int(1024)
306- bool(true)
307- string(32) "b09c8026a64a88d36d4c2f17983964bb"
308- bool(true)
309- int(0)
310- bool(false)
311- Reading 1000 bytes from file, expecting 1000 bytes ... OK
312- int(1000)
313- bool(false)
314- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
315- bool(true)
316- -- File opened in mode rt --
317- int(0)
318- bool(false)
319- Reading 1024 bytes from file, expecting 1024 bytes ... OK
320- int(1024)
321- bool(false)
322- string(32) "b09c8026a64a88d36d4c2f17983964bb"
323- bool(true)
324- int(0)
325- bool(false)
326- Reading 1030 bytes from file, expecting 1024 bytes ... OK
327- int(1024)
328- bool(true)
329- string(32) "b09c8026a64a88d36d4c2f17983964bb"
330- bool(true)
331- int(0)
332- bool(false)
333- Reading 1000 bytes from file, expecting 1000 bytes ... OK
334- int(1000)
335- bool(false)
336- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
337- bool(true)
338- -- File opened in mode r+ --
339- int(0)
340- bool(false)
341- Reading 1024 bytes from file, expecting 1024 bytes ... OK
342- int(1024)
343- bool(false)
344- string(32) "b09c8026a64a88d36d4c2f17983964bb"
345- bool(true)
346- int(0)
347- bool(false)
348- Reading 1030 bytes from file, expecting 1024 bytes ... OK
349- int(1024)
350- bool(true)
351- string(32) "b09c8026a64a88d36d4c2f17983964bb"
352- bool(true)
353- int(0)
354- bool(false)
355- Reading 1000 bytes from file, expecting 1000 bytes ... OK
356- int(1000)
357- bool(false)
358- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
359- bool(true)
360- -- File opened in mode r+b --
361- int(0)
362- bool(false)
363- Reading 1024 bytes from file, expecting 1024 bytes ... OK
364- int(1024)
365- bool(false)
366- string(32) "b09c8026a64a88d36d4c2f17983964bb"
367- bool(true)
368- int(0)
369- bool(false)
370- Reading 1030 bytes from file, expecting 1024 bytes ... OK
371- int(1024)
372- bool(true)
373- string(32) "b09c8026a64a88d36d4c2f17983964bb"
374- bool(true)
375- int(0)
376- bool(false)
377- Reading 1000 bytes from file, expecting 1000 bytes ... OK
378- int(1000)
379- bool(false)
380- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
381- bool(true)
382- -- File opened in mode r+t --
383- int(0)
384- bool(false)
385- Reading 1024 bytes from file, expecting 1024 bytes ... OK
386- int(1024)
387- bool(false)
388- string(32) "b09c8026a64a88d36d4c2f17983964bb"
389- bool(true)
390- int(0)
391- bool(false)
392- Reading 1030 bytes from file, expecting 1024 bytes ... OK
393- int(1024)
394- bool(true)
395- string(32) "b09c8026a64a88d36d4c2f17983964bb"
396- bool(true)
397- int(0)
398- bool(false)
399- Reading 1000 bytes from file, expecting 1000 bytes ... OK
400- int(1000)
401- bool(false)
402- string(32) "a148fa8110bbac875d84fc9d7056c0a1"
403- bool(true)
404-
405- -- Testing fread) with file having data of type alphanumeric --
406- -- File opened in mode r --
407- int(0)
408- bool(false)
409- Reading 1024 bytes from file, expecting 1024 bytes ... OK
410- int(1024)
411- bool(false)
412- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
413- bool(true)
414- int(0)
415- bool(false)
416- Reading 1030 bytes from file, expecting 1024 bytes ... OK
417- int(1024)
418- bool(true)
419- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
420- bool(true)
421- int(0)
422- bool(false)
423- Reading 1000 bytes from file, expecting 1000 bytes ... OK
424- int(1000)
425- bool(false)
426- string(32) "a49d752f980184c7f44568e930f89c72"
427- bool(true)
428- -- File opened in mode rb --
429- int(0)
430- bool(false)
431- Reading 1024 bytes from file, expecting 1024 bytes ... OK
432- int(1024)
433- bool(false)
434- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
435- bool(true)
436- int(0)
437- bool(false)
438- Reading 1030 bytes from file, expecting 1024 bytes ... OK
439- int(1024)
440- bool(true)
441- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
442- bool(true)
443- int(0)
444- bool(false)
445- Reading 1000 bytes from file, expecting 1000 bytes ... OK
446- int(1000)
447- bool(false)
448- string(32) "a49d752f980184c7f44568e930f89c72"
449- bool(true)
450- -- File opened in mode rt --
451- int(0)
452- bool(false)
453- Reading 1024 bytes from file, expecting 1024 bytes ... OK
454- int(1024)
455- bool(false)
456- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
457- bool(true)
458- int(0)
459- bool(false)
460- Reading 1030 bytes from file, expecting 1024 bytes ... OK
461- int(1024)
462- bool(true)
463- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
464- bool(true)
465- int(0)
466- bool(false)
467- Reading 1000 bytes from file, expecting 1000 bytes ... OK
468- int(1000)
469- bool(false)
470- string(32) "a49d752f980184c7f44568e930f89c72"
471- bool(true)
472- -- File opened in mode r+ --
473- int(0)
474- bool(false)
475- Reading 1024 bytes from file, expecting 1024 bytes ... OK
476- int(1024)
477- bool(false)
478- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
479- bool(true)
480- int(0)
481- bool(false)
482- Reading 1030 bytes from file, expecting 1024 bytes ... OK
483- int(1024)
484- bool(true)
485- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
486- bool(true)
487- int(0)
488- bool(false)
489- Reading 1000 bytes from file, expecting 1000 bytes ... OK
490- int(1000)
491- bool(false)
492- string(32) "a49d752f980184c7f44568e930f89c72"
493- bool(true)
494- -- File opened in mode r+b --
495- int(0)
496- bool(false)
497- Reading 1024 bytes from file, expecting 1024 bytes ... OK
498- int(1024)
499- bool(false)
500- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
501- bool(true)
502- int(0)
503- bool(false)
504- Reading 1030 bytes from file, expecting 1024 bytes ... OK
505- int(1024)
506- bool(true)
507- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
508- bool(true)
509- int(0)
510- bool(false)
511- Reading 1000 bytes from file, expecting 1000 bytes ... OK
512- int(1000)
513- bool(false)
514- string(32) "a49d752f980184c7f44568e930f89c72"
515- bool(true)
516- -- File opened in mode r+t --
517- int(0)
518- bool(false)
519- Reading 1024 bytes from file, expecting 1024 bytes ... OK
520- int(1024)
521- bool(false)
522- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
523- bool(true)
524- int(0)
525- bool(false)
526- Reading 1030 bytes from file, expecting 1024 bytes ... OK
527- int(1024)
528- bool(true)
529- string(32) "3fabd48d8eaa65c14e0d93d6880c560c"
530- bool(true)
531- int(0)
532- bool(false)
533- Reading 1000 bytes from file, expecting 1000 bytes ... OK
534- int(1000)
535- bool(false)
536- string(32) "a49d752f980184c7f44568e930f89c72"
537- bool(true)
538- Done