mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
28 lines
648 B
Plaintext
28 lines
648 B
Plaintext
|
--TEST--
|
||
|
Test glob() function: error condition - pattern too long.
|
||
|
--CREDITS--
|
||
|
Dave Kelsey <d_kelsey@uk.ibm.com>
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if(substr(PHP_OS, 0, 3) != "WIN")
|
||
|
die("skip Only valid for Windows");
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
/* Prototype: array glob ( string $pattern [, int $flags] );
|
||
|
Description: Find pathnames matching a pattern
|
||
|
*/
|
||
|
|
||
|
echo "*** Testing glob() : error condition - pattern too long. ***\n";
|
||
|
|
||
|
var_dump(glob(str_repeat('x', 3000)));
|
||
|
|
||
|
echo "Done";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Testing glob() : error condition - pattern too long. ***
|
||
|
|
||
|
Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
|
||
|
bool(false)
|
||
|
Done
|