1--TEST--
2Test fscanf() function: usage variations - tracking file pointer while reading
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) {
6    die("skip this test is for 32bit platform only");
7}
8?>
9--FILE--
10<?php
11
12/*
13  Test fscanf() to scan data using different format types and also
14  tracking the file pointer movement along with reading
15 */
16
17$file_path = __DIR__;
18
19echo "*** Test fscanf(): tracking file pointer along with reading data from file ***\n";
20
21// create a file
22$filename = "$file_path/fscanf_variation55.tmp";
23$file_handle = fopen($filename, "w");
24if($file_handle == false)
25  exit("Error:failed to open file $filename");
26
27// different valid data
28$valid_data = array(
29  12345,            // integer value
30  -12345,
31  123.45,	    // float value
32  -123.45,
33  0x123B,           // hexadecimal value
34  0x12ab,
35  0123,             // octal value
36  -0123,
37  "abcde",          // string
38  'abcde',
39  10e3,             // exponential value
40  10e-3
41);
42// various formats
43$int_formats = array( "%d", "%f", "%s", "%o", "%x", "%u", "%c", "%e");
44
45$counter = 1;
46
47// writing to the file
48foreach($valid_data as $data) {
49  @fprintf($file_handle, $data);
50  @fprintf($file_handle, "\n");
51}
52// closing the file
53fclose($file_handle);
54
55$modes = array("r", "rb", "rt");
56
57foreach($modes as $mode) {
58
59  echo "\n*** File opened in $mode mode ***\n";
60  // opening the file for reading
61  $file_handle = fopen($filename, $mode);
62  if($file_handle == false) {
63    exit("Error:failed to open file $filename");
64  }
65
66  $counter = 1;
67  // reading different data from file using different formats
68  foreach($int_formats as $int_format) {
69    // current file pointer position
70    var_dump( ftell($file_handle) );
71    // rewind the file so that for every foreach iteration the file pointer starts from bof
72    rewind($file_handle);
73    // current file pointer position after rewind operation
74    var_dump( ftell($file_handle) );
75    echo "\n-- iteration $counter --\n";
76    while( !feof($file_handle) ) {
77      var_dump( ftell($file_handle) );
78      var_dump( fscanf($file_handle,$int_format) );
79    }
80    $counter++;
81  } // end of inner for loop
82} // end of outer for loop
83
84echo "\n*** Done ***";
85?>
86--CLEAN--
87<?php
88$file_path = __DIR__;
89$filename = "$file_path/fscanf_variation55.tmp";
90unlink($filename);
91?>
92--EXPECT--
93*** Test fscanf(): tracking file pointer along with reading data from file ***
94
95*** File opened in r mode ***
96int(0)
97int(0)
98
99-- iteration 1 --
100int(0)
101array(1) {
102  [0]=>
103  int(12345)
104}
105int(6)
106array(1) {
107  [0]=>
108  int(-12345)
109}
110int(13)
111array(1) {
112  [0]=>
113  int(123)
114}
115int(20)
116array(1) {
117  [0]=>
118  int(-123)
119}
120int(28)
121array(1) {
122  [0]=>
123  int(4667)
124}
125int(33)
126array(1) {
127  [0]=>
128  int(4779)
129}
130int(38)
131array(1) {
132  [0]=>
133  int(83)
134}
135int(41)
136array(1) {
137  [0]=>
138  int(-83)
139}
140int(45)
141array(1) {
142  [0]=>
143  NULL
144}
145int(51)
146array(1) {
147  [0]=>
148  NULL
149}
150int(57)
151array(1) {
152  [0]=>
153  int(10000)
154}
155int(63)
156array(1) {
157  [0]=>
158  int(0)
159}
160int(68)
161bool(false)
162int(68)
163int(0)
164
165-- iteration 2 --
166int(0)
167array(1) {
168  [0]=>
169  float(12345)
170}
171int(6)
172array(1) {
173  [0]=>
174  float(-12345)
175}
176int(13)
177array(1) {
178  [0]=>
179  float(123.45)
180}
181int(20)
182array(1) {
183  [0]=>
184  float(-123.45)
185}
186int(28)
187array(1) {
188  [0]=>
189  float(4667)
190}
191int(33)
192array(1) {
193  [0]=>
194  float(4779)
195}
196int(38)
197array(1) {
198  [0]=>
199  float(83)
200}
201int(41)
202array(1) {
203  [0]=>
204  float(-83)
205}
206int(45)
207array(1) {
208  [0]=>
209  NULL
210}
211int(51)
212array(1) {
213  [0]=>
214  NULL
215}
216int(57)
217array(1) {
218  [0]=>
219  float(10000)
220}
221int(63)
222array(1) {
223  [0]=>
224  float(0.01)
225}
226int(68)
227bool(false)
228int(68)
229int(0)
230
231-- iteration 3 --
232int(0)
233array(1) {
234  [0]=>
235  string(5) "12345"
236}
237int(6)
238array(1) {
239  [0]=>
240  string(6) "-12345"
241}
242int(13)
243array(1) {
244  [0]=>
245  string(6) "123.45"
246}
247int(20)
248array(1) {
249  [0]=>
250  string(7) "-123.45"
251}
252int(28)
253array(1) {
254  [0]=>
255  string(4) "4667"
256}
257int(33)
258array(1) {
259  [0]=>
260  string(4) "4779"
261}
262int(38)
263array(1) {
264  [0]=>
265  string(2) "83"
266}
267int(41)
268array(1) {
269  [0]=>
270  string(3) "-83"
271}
272int(45)
273array(1) {
274  [0]=>
275  string(5) "abcde"
276}
277int(51)
278array(1) {
279  [0]=>
280  string(5) "abcde"
281}
282int(57)
283array(1) {
284  [0]=>
285  string(5) "10000"
286}
287int(63)
288array(1) {
289  [0]=>
290  string(4) "0.01"
291}
292int(68)
293bool(false)
294int(68)
295int(0)
296
297-- iteration 4 --
298int(0)
299array(1) {
300  [0]=>
301  int(5349)
302}
303int(6)
304array(1) {
305  [0]=>
306  int(-5349)
307}
308int(13)
309array(1) {
310  [0]=>
311  int(83)
312}
313int(20)
314array(1) {
315  [0]=>
316  int(-83)
317}
318int(28)
319array(1) {
320  [0]=>
321  int(2487)
322}
323int(33)
324array(1) {
325  [0]=>
326  int(319)
327}
328int(38)
329array(1) {
330  [0]=>
331  NULL
332}
333int(41)
334array(1) {
335  [0]=>
336  NULL
337}
338int(45)
339array(1) {
340  [0]=>
341  NULL
342}
343int(51)
344array(1) {
345  [0]=>
346  NULL
347}
348int(57)
349array(1) {
350  [0]=>
351  int(4096)
352}
353int(63)
354array(1) {
355  [0]=>
356  int(0)
357}
358int(68)
359bool(false)
360int(68)
361int(0)
362
363-- iteration 5 --
364int(0)
365array(1) {
366  [0]=>
367  int(74565)
368}
369int(6)
370array(1) {
371  [0]=>
372  int(-74565)
373}
374int(13)
375array(1) {
376  [0]=>
377  int(291)
378}
379int(20)
380array(1) {
381  [0]=>
382  int(-291)
383}
384int(28)
385array(1) {
386  [0]=>
387  int(18023)
388}
389int(33)
390array(1) {
391  [0]=>
392  int(18297)
393}
394int(38)
395array(1) {
396  [0]=>
397  int(131)
398}
399int(41)
400array(1) {
401  [0]=>
402  int(-131)
403}
404int(45)
405array(1) {
406  [0]=>
407  int(703710)
408}
409int(51)
410array(1) {
411  [0]=>
412  int(703710)
413}
414int(57)
415array(1) {
416  [0]=>
417  int(65536)
418}
419int(63)
420array(1) {
421  [0]=>
422  int(0)
423}
424int(68)
425bool(false)
426int(68)
427int(0)
428
429-- iteration 6 --
430int(0)
431array(1) {
432  [0]=>
433  int(12345)
434}
435int(6)
436array(1) {
437  [0]=>
438  string(10) "4294954951"
439}
440int(13)
441array(1) {
442  [0]=>
443  int(123)
444}
445int(20)
446array(1) {
447  [0]=>
448  string(10) "4294967173"
449}
450int(28)
451array(1) {
452  [0]=>
453  int(4667)
454}
455int(33)
456array(1) {
457  [0]=>
458  int(4779)
459}
460int(38)
461array(1) {
462  [0]=>
463  int(83)
464}
465int(41)
466array(1) {
467  [0]=>
468  string(10) "4294967213"
469}
470int(45)
471array(1) {
472  [0]=>
473  NULL
474}
475int(51)
476array(1) {
477  [0]=>
478  NULL
479}
480int(57)
481array(1) {
482  [0]=>
483  int(10000)
484}
485int(63)
486array(1) {
487  [0]=>
488  int(0)
489}
490int(68)
491bool(false)
492int(68)
493int(0)
494
495-- iteration 7 --
496int(0)
497array(1) {
498  [0]=>
499  string(1) "1"
500}
501int(6)
502array(1) {
503  [0]=>
504  string(1) "-"
505}
506int(13)
507array(1) {
508  [0]=>
509  string(1) "1"
510}
511int(20)
512array(1) {
513  [0]=>
514  string(1) "-"
515}
516int(28)
517array(1) {
518  [0]=>
519  string(1) "4"
520}
521int(33)
522array(1) {
523  [0]=>
524  string(1) "4"
525}
526int(38)
527array(1) {
528  [0]=>
529  string(1) "8"
530}
531int(41)
532array(1) {
533  [0]=>
534  string(1) "-"
535}
536int(45)
537array(1) {
538  [0]=>
539  string(1) "a"
540}
541int(51)
542array(1) {
543  [0]=>
544  string(1) "a"
545}
546int(57)
547array(1) {
548  [0]=>
549  string(1) "1"
550}
551int(63)
552array(1) {
553  [0]=>
554  string(1) "0"
555}
556int(68)
557bool(false)
558int(68)
559int(0)
560
561-- iteration 8 --
562int(0)
563array(1) {
564  [0]=>
565  float(12345)
566}
567int(6)
568array(1) {
569  [0]=>
570  float(-12345)
571}
572int(13)
573array(1) {
574  [0]=>
575  float(123.45)
576}
577int(20)
578array(1) {
579  [0]=>
580  float(-123.45)
581}
582int(28)
583array(1) {
584  [0]=>
585  float(4667)
586}
587int(33)
588array(1) {
589  [0]=>
590  float(4779)
591}
592int(38)
593array(1) {
594  [0]=>
595  float(83)
596}
597int(41)
598array(1) {
599  [0]=>
600  float(-83)
601}
602int(45)
603array(1) {
604  [0]=>
605  NULL
606}
607int(51)
608array(1) {
609  [0]=>
610  NULL
611}
612int(57)
613array(1) {
614  [0]=>
615  float(10000)
616}
617int(63)
618array(1) {
619  [0]=>
620  float(0.01)
621}
622int(68)
623bool(false)
624
625*** File opened in rb mode ***
626int(0)
627int(0)
628
629-- iteration 1 --
630int(0)
631array(1) {
632  [0]=>
633  int(12345)
634}
635int(6)
636array(1) {
637  [0]=>
638  int(-12345)
639}
640int(13)
641array(1) {
642  [0]=>
643  int(123)
644}
645int(20)
646array(1) {
647  [0]=>
648  int(-123)
649}
650int(28)
651array(1) {
652  [0]=>
653  int(4667)
654}
655int(33)
656array(1) {
657  [0]=>
658  int(4779)
659}
660int(38)
661array(1) {
662  [0]=>
663  int(83)
664}
665int(41)
666array(1) {
667  [0]=>
668  int(-83)
669}
670int(45)
671array(1) {
672  [0]=>
673  NULL
674}
675int(51)
676array(1) {
677  [0]=>
678  NULL
679}
680int(57)
681array(1) {
682  [0]=>
683  int(10000)
684}
685int(63)
686array(1) {
687  [0]=>
688  int(0)
689}
690int(68)
691bool(false)
692int(68)
693int(0)
694
695-- iteration 2 --
696int(0)
697array(1) {
698  [0]=>
699  float(12345)
700}
701int(6)
702array(1) {
703  [0]=>
704  float(-12345)
705}
706int(13)
707array(1) {
708  [0]=>
709  float(123.45)
710}
711int(20)
712array(1) {
713  [0]=>
714  float(-123.45)
715}
716int(28)
717array(1) {
718  [0]=>
719  float(4667)
720}
721int(33)
722array(1) {
723  [0]=>
724  float(4779)
725}
726int(38)
727array(1) {
728  [0]=>
729  float(83)
730}
731int(41)
732array(1) {
733  [0]=>
734  float(-83)
735}
736int(45)
737array(1) {
738  [0]=>
739  NULL
740}
741int(51)
742array(1) {
743  [0]=>
744  NULL
745}
746int(57)
747array(1) {
748  [0]=>
749  float(10000)
750}
751int(63)
752array(1) {
753  [0]=>
754  float(0.01)
755}
756int(68)
757bool(false)
758int(68)
759int(0)
760
761-- iteration 3 --
762int(0)
763array(1) {
764  [0]=>
765  string(5) "12345"
766}
767int(6)
768array(1) {
769  [0]=>
770  string(6) "-12345"
771}
772int(13)
773array(1) {
774  [0]=>
775  string(6) "123.45"
776}
777int(20)
778array(1) {
779  [0]=>
780  string(7) "-123.45"
781}
782int(28)
783array(1) {
784  [0]=>
785  string(4) "4667"
786}
787int(33)
788array(1) {
789  [0]=>
790  string(4) "4779"
791}
792int(38)
793array(1) {
794  [0]=>
795  string(2) "83"
796}
797int(41)
798array(1) {
799  [0]=>
800  string(3) "-83"
801}
802int(45)
803array(1) {
804  [0]=>
805  string(5) "abcde"
806}
807int(51)
808array(1) {
809  [0]=>
810  string(5) "abcde"
811}
812int(57)
813array(1) {
814  [0]=>
815  string(5) "10000"
816}
817int(63)
818array(1) {
819  [0]=>
820  string(4) "0.01"
821}
822int(68)
823bool(false)
824int(68)
825int(0)
826
827-- iteration 4 --
828int(0)
829array(1) {
830  [0]=>
831  int(5349)
832}
833int(6)
834array(1) {
835  [0]=>
836  int(-5349)
837}
838int(13)
839array(1) {
840  [0]=>
841  int(83)
842}
843int(20)
844array(1) {
845  [0]=>
846  int(-83)
847}
848int(28)
849array(1) {
850  [0]=>
851  int(2487)
852}
853int(33)
854array(1) {
855  [0]=>
856  int(319)
857}
858int(38)
859array(1) {
860  [0]=>
861  NULL
862}
863int(41)
864array(1) {
865  [0]=>
866  NULL
867}
868int(45)
869array(1) {
870  [0]=>
871  NULL
872}
873int(51)
874array(1) {
875  [0]=>
876  NULL
877}
878int(57)
879array(1) {
880  [0]=>
881  int(4096)
882}
883int(63)
884array(1) {
885  [0]=>
886  int(0)
887}
888int(68)
889bool(false)
890int(68)
891int(0)
892
893-- iteration 5 --
894int(0)
895array(1) {
896  [0]=>
897  int(74565)
898}
899int(6)
900array(1) {
901  [0]=>
902  int(-74565)
903}
904int(13)
905array(1) {
906  [0]=>
907  int(291)
908}
909int(20)
910array(1) {
911  [0]=>
912  int(-291)
913}
914int(28)
915array(1) {
916  [0]=>
917  int(18023)
918}
919int(33)
920array(1) {
921  [0]=>
922  int(18297)
923}
924int(38)
925array(1) {
926  [0]=>
927  int(131)
928}
929int(41)
930array(1) {
931  [0]=>
932  int(-131)
933}
934int(45)
935array(1) {
936  [0]=>
937  int(703710)
938}
939int(51)
940array(1) {
941  [0]=>
942  int(703710)
943}
944int(57)
945array(1) {
946  [0]=>
947  int(65536)
948}
949int(63)
950array(1) {
951  [0]=>
952  int(0)
953}
954int(68)
955bool(false)
956int(68)
957int(0)
958
959-- iteration 6 --
960int(0)
961array(1) {
962  [0]=>
963  int(12345)
964}
965int(6)
966array(1) {
967  [0]=>
968  string(10) "4294954951"
969}
970int(13)
971array(1) {
972  [0]=>
973  int(123)
974}
975int(20)
976array(1) {
977  [0]=>
978  string(10) "4294967173"
979}
980int(28)
981array(1) {
982  [0]=>
983  int(4667)
984}
985int(33)
986array(1) {
987  [0]=>
988  int(4779)
989}
990int(38)
991array(1) {
992  [0]=>
993  int(83)
994}
995int(41)
996array(1) {
997  [0]=>
998  string(10) "4294967213"
999}
1000int(45)
1001array(1) {
1002  [0]=>
1003  NULL
1004}
1005int(51)
1006array(1) {
1007  [0]=>
1008  NULL
1009}
1010int(57)
1011array(1) {
1012  [0]=>
1013  int(10000)
1014}
1015int(63)
1016array(1) {
1017  [0]=>
1018  int(0)
1019}
1020int(68)
1021bool(false)
1022int(68)
1023int(0)
1024
1025-- iteration 7 --
1026int(0)
1027array(1) {
1028  [0]=>
1029  string(1) "1"
1030}
1031int(6)
1032array(1) {
1033  [0]=>
1034  string(1) "-"
1035}
1036int(13)
1037array(1) {
1038  [0]=>
1039  string(1) "1"
1040}
1041int(20)
1042array(1) {
1043  [0]=>
1044  string(1) "-"
1045}
1046int(28)
1047array(1) {
1048  [0]=>
1049  string(1) "4"
1050}
1051int(33)
1052array(1) {
1053  [0]=>
1054  string(1) "4"
1055}
1056int(38)
1057array(1) {
1058  [0]=>
1059  string(1) "8"
1060}
1061int(41)
1062array(1) {
1063  [0]=>
1064  string(1) "-"
1065}
1066int(45)
1067array(1) {
1068  [0]=>
1069  string(1) "a"
1070}
1071int(51)
1072array(1) {
1073  [0]=>
1074  string(1) "a"
1075}
1076int(57)
1077array(1) {
1078  [0]=>
1079  string(1) "1"
1080}
1081int(63)
1082array(1) {
1083  [0]=>
1084  string(1) "0"
1085}
1086int(68)
1087bool(false)
1088int(68)
1089int(0)
1090
1091-- iteration 8 --
1092int(0)
1093array(1) {
1094  [0]=>
1095  float(12345)
1096}
1097int(6)
1098array(1) {
1099  [0]=>
1100  float(-12345)
1101}
1102int(13)
1103array(1) {
1104  [0]=>
1105  float(123.45)
1106}
1107int(20)
1108array(1) {
1109  [0]=>
1110  float(-123.45)
1111}
1112int(28)
1113array(1) {
1114  [0]=>
1115  float(4667)
1116}
1117int(33)
1118array(1) {
1119  [0]=>
1120  float(4779)
1121}
1122int(38)
1123array(1) {
1124  [0]=>
1125  float(83)
1126}
1127int(41)
1128array(1) {
1129  [0]=>
1130  float(-83)
1131}
1132int(45)
1133array(1) {
1134  [0]=>
1135  NULL
1136}
1137int(51)
1138array(1) {
1139  [0]=>
1140  NULL
1141}
1142int(57)
1143array(1) {
1144  [0]=>
1145  float(10000)
1146}
1147int(63)
1148array(1) {
1149  [0]=>
1150  float(0.01)
1151}
1152int(68)
1153bool(false)
1154
1155*** File opened in rt mode ***
1156int(0)
1157int(0)
1158
1159-- iteration 1 --
1160int(0)
1161array(1) {
1162  [0]=>
1163  int(12345)
1164}
1165int(6)
1166array(1) {
1167  [0]=>
1168  int(-12345)
1169}
1170int(13)
1171array(1) {
1172  [0]=>
1173  int(123)
1174}
1175int(20)
1176array(1) {
1177  [0]=>
1178  int(-123)
1179}
1180int(28)
1181array(1) {
1182  [0]=>
1183  int(4667)
1184}
1185int(33)
1186array(1) {
1187  [0]=>
1188  int(4779)
1189}
1190int(38)
1191array(1) {
1192  [0]=>
1193  int(83)
1194}
1195int(41)
1196array(1) {
1197  [0]=>
1198  int(-83)
1199}
1200int(45)
1201array(1) {
1202  [0]=>
1203  NULL
1204}
1205int(51)
1206array(1) {
1207  [0]=>
1208  NULL
1209}
1210int(57)
1211array(1) {
1212  [0]=>
1213  int(10000)
1214}
1215int(63)
1216array(1) {
1217  [0]=>
1218  int(0)
1219}
1220int(68)
1221bool(false)
1222int(68)
1223int(0)
1224
1225-- iteration 2 --
1226int(0)
1227array(1) {
1228  [0]=>
1229  float(12345)
1230}
1231int(6)
1232array(1) {
1233  [0]=>
1234  float(-12345)
1235}
1236int(13)
1237array(1) {
1238  [0]=>
1239  float(123.45)
1240}
1241int(20)
1242array(1) {
1243  [0]=>
1244  float(-123.45)
1245}
1246int(28)
1247array(1) {
1248  [0]=>
1249  float(4667)
1250}
1251int(33)
1252array(1) {
1253  [0]=>
1254  float(4779)
1255}
1256int(38)
1257array(1) {
1258  [0]=>
1259  float(83)
1260}
1261int(41)
1262array(1) {
1263  [0]=>
1264  float(-83)
1265}
1266int(45)
1267array(1) {
1268  [0]=>
1269  NULL
1270}
1271int(51)
1272array(1) {
1273  [0]=>
1274  NULL
1275}
1276int(57)
1277array(1) {
1278  [0]=>
1279  float(10000)
1280}
1281int(63)
1282array(1) {
1283  [0]=>
1284  float(0.01)
1285}
1286int(68)
1287bool(false)
1288int(68)
1289int(0)
1290
1291-- iteration 3 --
1292int(0)
1293array(1) {
1294  [0]=>
1295  string(5) "12345"
1296}
1297int(6)
1298array(1) {
1299  [0]=>
1300  string(6) "-12345"
1301}
1302int(13)
1303array(1) {
1304  [0]=>
1305  string(6) "123.45"
1306}
1307int(20)
1308array(1) {
1309  [0]=>
1310  string(7) "-123.45"
1311}
1312int(28)
1313array(1) {
1314  [0]=>
1315  string(4) "4667"
1316}
1317int(33)
1318array(1) {
1319  [0]=>
1320  string(4) "4779"
1321}
1322int(38)
1323array(1) {
1324  [0]=>
1325  string(2) "83"
1326}
1327int(41)
1328array(1) {
1329  [0]=>
1330  string(3) "-83"
1331}
1332int(45)
1333array(1) {
1334  [0]=>
1335  string(5) "abcde"
1336}
1337int(51)
1338array(1) {
1339  [0]=>
1340  string(5) "abcde"
1341}
1342int(57)
1343array(1) {
1344  [0]=>
1345  string(5) "10000"
1346}
1347int(63)
1348array(1) {
1349  [0]=>
1350  string(4) "0.01"
1351}
1352int(68)
1353bool(false)
1354int(68)
1355int(0)
1356
1357-- iteration 4 --
1358int(0)
1359array(1) {
1360  [0]=>
1361  int(5349)
1362}
1363int(6)
1364array(1) {
1365  [0]=>
1366  int(-5349)
1367}
1368int(13)
1369array(1) {
1370  [0]=>
1371  int(83)
1372}
1373int(20)
1374array(1) {
1375  [0]=>
1376  int(-83)
1377}
1378int(28)
1379array(1) {
1380  [0]=>
1381  int(2487)
1382}
1383int(33)
1384array(1) {
1385  [0]=>
1386  int(319)
1387}
1388int(38)
1389array(1) {
1390  [0]=>
1391  NULL
1392}
1393int(41)
1394array(1) {
1395  [0]=>
1396  NULL
1397}
1398int(45)
1399array(1) {
1400  [0]=>
1401  NULL
1402}
1403int(51)
1404array(1) {
1405  [0]=>
1406  NULL
1407}
1408int(57)
1409array(1) {
1410  [0]=>
1411  int(4096)
1412}
1413int(63)
1414array(1) {
1415  [0]=>
1416  int(0)
1417}
1418int(68)
1419bool(false)
1420int(68)
1421int(0)
1422
1423-- iteration 5 --
1424int(0)
1425array(1) {
1426  [0]=>
1427  int(74565)
1428}
1429int(6)
1430array(1) {
1431  [0]=>
1432  int(-74565)
1433}
1434int(13)
1435array(1) {
1436  [0]=>
1437  int(291)
1438}
1439int(20)
1440array(1) {
1441  [0]=>
1442  int(-291)
1443}
1444int(28)
1445array(1) {
1446  [0]=>
1447  int(18023)
1448}
1449int(33)
1450array(1) {
1451  [0]=>
1452  int(18297)
1453}
1454int(38)
1455array(1) {
1456  [0]=>
1457  int(131)
1458}
1459int(41)
1460array(1) {
1461  [0]=>
1462  int(-131)
1463}
1464int(45)
1465array(1) {
1466  [0]=>
1467  int(703710)
1468}
1469int(51)
1470array(1) {
1471  [0]=>
1472  int(703710)
1473}
1474int(57)
1475array(1) {
1476  [0]=>
1477  int(65536)
1478}
1479int(63)
1480array(1) {
1481  [0]=>
1482  int(0)
1483}
1484int(68)
1485bool(false)
1486int(68)
1487int(0)
1488
1489-- iteration 6 --
1490int(0)
1491array(1) {
1492  [0]=>
1493  int(12345)
1494}
1495int(6)
1496array(1) {
1497  [0]=>
1498  string(10) "4294954951"
1499}
1500int(13)
1501array(1) {
1502  [0]=>
1503  int(123)
1504}
1505int(20)
1506array(1) {
1507  [0]=>
1508  string(10) "4294967173"
1509}
1510int(28)
1511array(1) {
1512  [0]=>
1513  int(4667)
1514}
1515int(33)
1516array(1) {
1517  [0]=>
1518  int(4779)
1519}
1520int(38)
1521array(1) {
1522  [0]=>
1523  int(83)
1524}
1525int(41)
1526array(1) {
1527  [0]=>
1528  string(10) "4294967213"
1529}
1530int(45)
1531array(1) {
1532  [0]=>
1533  NULL
1534}
1535int(51)
1536array(1) {
1537  [0]=>
1538  NULL
1539}
1540int(57)
1541array(1) {
1542  [0]=>
1543  int(10000)
1544}
1545int(63)
1546array(1) {
1547  [0]=>
1548  int(0)
1549}
1550int(68)
1551bool(false)
1552int(68)
1553int(0)
1554
1555-- iteration 7 --
1556int(0)
1557array(1) {
1558  [0]=>
1559  string(1) "1"
1560}
1561int(6)
1562array(1) {
1563  [0]=>
1564  string(1) "-"
1565}
1566int(13)
1567array(1) {
1568  [0]=>
1569  string(1) "1"
1570}
1571int(20)
1572array(1) {
1573  [0]=>
1574  string(1) "-"
1575}
1576int(28)
1577array(1) {
1578  [0]=>
1579  string(1) "4"
1580}
1581int(33)
1582array(1) {
1583  [0]=>
1584  string(1) "4"
1585}
1586int(38)
1587array(1) {
1588  [0]=>
1589  string(1) "8"
1590}
1591int(41)
1592array(1) {
1593  [0]=>
1594  string(1) "-"
1595}
1596int(45)
1597array(1) {
1598  [0]=>
1599  string(1) "a"
1600}
1601int(51)
1602array(1) {
1603  [0]=>
1604  string(1) "a"
1605}
1606int(57)
1607array(1) {
1608  [0]=>
1609  string(1) "1"
1610}
1611int(63)
1612array(1) {
1613  [0]=>
1614  string(1) "0"
1615}
1616int(68)
1617bool(false)
1618int(68)
1619int(0)
1620
1621-- iteration 8 --
1622int(0)
1623array(1) {
1624  [0]=>
1625  float(12345)
1626}
1627int(6)
1628array(1) {
1629  [0]=>
1630  float(-12345)
1631}
1632int(13)
1633array(1) {
1634  [0]=>
1635  float(123.45)
1636}
1637int(20)
1638array(1) {
1639  [0]=>
1640  float(-123.45)
1641}
1642int(28)
1643array(1) {
1644  [0]=>
1645  float(4667)
1646}
1647int(33)
1648array(1) {
1649  [0]=>
1650  float(4779)
1651}
1652int(38)
1653array(1) {
1654  [0]=>
1655  float(83)
1656}
1657int(41)
1658array(1) {
1659  [0]=>
1660  float(-83)
1661}
1662int(45)
1663array(1) {
1664  [0]=>
1665  NULL
1666}
1667int(51)
1668array(1) {
1669  [0]=>
1670  NULL
1671}
1672int(57)
1673array(1) {
1674  [0]=>
1675  float(10000)
1676}
1677int(63)
1678array(1) {
1679  [0]=>
1680  float(0.01)
1681}
1682int(68)
1683bool(false)
1684
1685*** Done ***
1686