@@ -134,7 +134,7 @@ match($null_arr, $null_arr);
134
134
135
135
echo "\n*** Done *** \n" ;
136
136
?>
137
- --EXPECT --
137
+ --EXPECTF --
138
138
*** Testing fnmatch() with file and various patterns ***
139
139
-- Iteration 0 --
140
140
bool(true)
@@ -183,9 +183,13 @@ bool(false)
183
183
-- Iteration 22 --
184
184
bool(false)
185
185
-- Iteration 23 --
186
- bool(false)
186
+
187
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
188
+ NULL
187
189
-- Iteration 24 --
188
- bool(false)
190
+
191
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
192
+ NULL
189
193
-- Iteration 25 --
190
194
bool(false)
191
195
-- Iteration 26 --
@@ -259,44 +263,84 @@ bool(true)
259
263
--- With Strings ---
260
264
-- Iteration 0 --
261
265
bool(true)
266
+
267
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
268
+ NULL
262
269
bool(true)
263
- bool(true)
264
- bool(false)
270
+
271
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
272
+ NULL
265
273
bool(false)
266
274
bool(true)
267
275
-- Iteration 1 --
268
- bool(true)
269
- bool(true)
270
- bool(true)
271
- bool(false)
272
- bool(false)
273
- bool(true)
276
+
277
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
278
+ NULL
279
+
280
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
281
+ NULL
282
+
283
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
284
+ NULL
285
+
286
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
287
+ NULL
288
+
289
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
290
+ NULL
291
+
292
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
293
+ NULL
274
294
-- Iteration 2 --
275
295
bool(true)
296
+
297
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
298
+ NULL
276
299
bool(true)
277
- bool(true)
278
- bool(false)
300
+
301
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
302
+ NULL
279
303
bool(false)
280
304
bool(true)
281
305
-- Iteration 3 --
282
- bool(false)
283
- bool(false)
284
- bool(false)
285
- bool(true)
286
- bool(false)
287
- bool(false)
306
+
307
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
308
+ NULL
309
+
310
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
311
+ NULL
312
+
313
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
314
+ NULL
315
+
316
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
317
+ NULL
318
+
319
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
320
+ NULL
321
+
322
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
323
+ NULL
288
324
-- Iteration 4 --
289
325
bool(false)
326
+
327
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
328
+ NULL
290
329
bool(false)
291
- bool(false)
292
- bool(false)
330
+
331
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
332
+ NULL
293
333
bool(true)
294
334
bool(false)
295
335
-- Iteration 5 --
296
336
bool(true)
337
+
338
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
339
+ NULL
297
340
bool(true)
298
- bool(true)
299
- bool(false)
341
+
342
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
343
+ NULL
300
344
bool(false)
301
345
bool(true)
302
346
@@ -397,42 +441,64 @@ bool(true)
397
441
bool(true)
398
442
bool(true)
399
443
bool(true)
400
- bool(true)
444
+
445
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
446
+ NULL
401
447
bool(false)
402
448
bool(false)
403
449
-- Iteration 1 --
404
450
bool(true)
405
451
bool(true)
406
452
bool(true)
407
- bool(true)
453
+
454
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
455
+ NULL
408
456
bool(false)
409
457
bool(false)
410
458
-- Iteration 2 --
411
459
bool(true)
412
460
bool(true)
413
461
bool(true)
414
- bool(true)
462
+
463
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
464
+ NULL
415
465
bool(false)
416
466
bool(false)
417
467
-- Iteration 3 --
418
- bool(true)
419
- bool(true)
420
- bool(true)
421
- bool(true)
422
- bool(false)
423
- bool(false)
468
+
469
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
470
+ NULL
471
+
472
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
473
+ NULL
474
+
475
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
476
+ NULL
477
+
478
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
479
+ NULL
480
+
481
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
482
+ NULL
483
+
484
+ Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
485
+ NULL
424
486
-- Iteration 4 --
425
487
bool(false)
426
488
bool(false)
427
489
bool(false)
428
- bool(false)
490
+
491
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
492
+ NULL
429
493
bool(true)
430
494
bool(false)
431
495
-- Iteration 5 --
432
496
bool(false)
433
497
bool(false)
434
498
bool(false)
435
- bool(false)
499
+
500
+ Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
501
+ NULL
436
502
bool(false)
437
503
bool(true)
438
504
0 commit comments