Annotation of embedaddon/php/ext/standard/tests/file/glob_error_002-win32.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test glob() function: error condition - pattern too long.
                      3: --CREDITS--
                      4: Dave Kelsey <d_kelsey@uk.ibm.com>
                      5: --SKIPIF--
                      6: <?php
                      7: if(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: 
                     16: echo "*** Testing glob() : error condition - pattern too long. ***\n";
                     17: 
                     18: var_dump(glob(str_repeat('x', 3000)));
                     19: 
                     20: echo "Done";
                     21: ?>
                     22: --EXPECTF--
                     23: *** Testing glob() : error condition - pattern too long. ***
                     24: 
                     25: Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
                     26: bool(false)
                     27: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>