1--TEST--
2Test glob() function: error condition - pattern too long.
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--SKIPIF--
6<?php
7if(substr(PHP_OS, 0, 3) != "WIN")
8  die("skip Only valid for Windows");
9?>
10--FILE--
11<?php
12echo "*** Testing glob() : error condition - pattern too long. ***\n";
13
14glob(str_repeat('x', 3000));
15
16echo "Done";
17?>
18--EXPECTF--
19*** Testing glob() : error condition - pattern too long. ***
20
21Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
22Done
23