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