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