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