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
12/* Prototype: array glob ( string $pattern [, int $flags] );
13   Description: Find pathnames matching a pattern
14*/
15
16echo "*** Testing glob() : error condition - pattern too long. ***\n";
17
18var_dump(glob(str_repeat('x', 3000)));
19
20echo "Done";
21?>
22--EXPECTF--
23*** Testing glob() : error condition - pattern too long. ***
24
25Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
26bool(false)
27Done
28