Home
last modified time | relevance | path

Searched refs:glob (Results 1 – 25 of 50) sorted by relevance

12

/PHP-5.3/ext/standard/tests/file/
H A Dglob_error.phpt2 Test glob() function: error conditions
5 /* Prototype: array glob ( string $pattern [, int $flags] );
17 echo "*** Testing glob() : error conditions ***\n";
19 echo "-- Testing glob() with unexpected no. of arguments --\n";
20 var_dump( glob() ); // args < expected
23 echo "\n-- Testing glob() with invalid arguments --\n";
24 var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", '') );
37 *** Testing glob() : error conditions ***
38 -- Testing glob() with unexpected no. of arguments --
40 Warning: glob() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dglob_basic.phpt2 Test glob() function: basic functions
5 /* Prototype: array glob ( string $pattern [, int $flags] );
9 echo "*** Testing glob() : basic functions ***\n";
27 // glob() with default arguments
28 sort_var_dump( glob($dirname."/*") );
29 sort_var_dump( glob($dirname."/*.txt") );
30 sort_var_dump( glob($dirname."/*.t?t") );
31 sort_var_dump( glob($dirname."/*.t*t") );
32 sort_var_dump( glob($dirname."/*.?") );
33 sort_var_dump( glob($dirname."/*.*") );
[all …]
H A Dglob_variation2.phpt2 Test glob() function with relative path
5 /* Prototype: array glob ( string $pattern [, int $flags] );
21 echo "Testing glob() with relative paths:\n";
24 var_dump( glob("./*") );
25 var_dump( glob("../$dir_name/*"));
28 var_dump( glob("$dir_name/*"));
29 var_dump( glob("$dir_name"));
40 Testing glob() with relative paths:
H A Dglob_error_002-win32.phpt2 Test glob() function: error condition - pattern too long.
12 /* Prototype: array glob ( string $pattern [, int $flags] );
16 echo "*** Testing glob() : error condition - pattern too long. ***\n";
18 var_dump(glob(str_repeat('x', 3000)));
23 *** Testing glob() : error condition - pattern too long. ***
25 Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d
H A Dglob_variation-win32.phpt2 Test glob() function: usage variations
45 using glob() */
49 var_dump( glob($pattern, GLOB_MARK) );
50 var_dump( glob($pattern, GLOB_NOSORT) );
51 var_dump( glob($pattern, GLOB_NOCHECK) );
52 var_dump( glob($pattern, GLOB_NOESCAPE) );
53 var_dump( glob($pattern, GLOB_ERR) );
72 using glob() */
75 var_dump( glob($pattern, GLOB_ONLYDIR) );
89 *** Testing glob() : usage variations ***
[all …]
H A Dglob_variation.phpt2 Test glob() function: usage variations
45 using glob() */
49 var_dump( glob($pattern, GLOB_MARK) );
50 var_dump( glob($pattern, GLOB_NOSORT) );
51 var_dump( glob($pattern, GLOB_NOCHECK) );
52 var_dump( glob($pattern, GLOB_NOESCAPE) );
53 var_dump( glob($pattern, GLOB_ERR) );
72 using glob() */
75 var_dump( glob($pattern, GLOB_ONLYDIR) );
89 *** Testing glob() : usage variations ***
[all …]
H A Dbug24482.phpt5 if (!function_exists("glob")) {
6 die('skip glob() not available');
16 $globdirs = glob("*", GLOB_ONLYDIR);
30 echo "glob found:\n";
H A Dbug41655_2.phpt2 Bug #41655 (open_basedir bypass via glob()) 2/2
8 $a=glob($dir . "/test.*");
H A Dbug41655_1.phpt2 Bug #41655 (open_basedir bypass via glob()) 1/2
9 $a=glob("./*.jpeg");
/PHP-5.3/ext/simplexml/tests/
H A D022.phpt10 <pres><content><file glob="slide_*.xml"/></content></pres>
25 var_dump($file['glob']);
37 ["glob"]=>
46 ["glob"]=>
54 ["glob"]=>
/PHP-5.3/main/streams/
H A Dglob_wrapper.c41 glob_t glob; member
102 return pglob->glob.gl_pathc; in _php_glob_stream_get_count()
148 if (pglob->index < pglob->glob.gl_pathc) { in php_glob_stream_read()
149 …php_glob_stream_path_split(pglob, pglob->glob.gl_pathv[pglob->index++], pglob->flags & GLOB_APPEND… in php_glob_stream_read()
153 pglob->index = pglob->glob.gl_pathc; in php_glob_stream_read()
170 globfree(&pglob->glob); in php_glob_stream_close()
229 if (0 != (ret = glob(path, pglob->flags & GLOB_FLAGMASK, NULL, &pglob->glob))) { in php_glob_stream_opener()
254 if (pglob->glob.gl_pathc) { in php_glob_stream_opener()
255 php_glob_stream_path_split(pglob, pglob->glob.gl_pathv[0], 1, &tmp TSRMLS_CC); in php_glob_stream_opener()
/PHP-5.3/tests/security/
H A Dopen_basedir_glob.phpt8 test_open_basedir("glob");
16 *** Testing open_basedir configuration [glob] ***
51 *** Finished testing open_basedir configuration [glob] ***
H A Dopen_basedir_glob_variation.phpt2 Test open_basedir configuration for glob
12 var_dump(glob("../globtest*"));
/PHP-5.3/ext/fileinfo/
H A Dfileinfo.php11 $files = glob("*");
25 $files = glob("*");
/PHP-5.3/ext/zip/tests/
H A Dbug51353.phpt34 $a = glob("$base_path/51353_unpack/*.txt");
47 $a = glob("$base_path/51353_unpack/*.txt");
/PHP-5.3/ext/standard/
H A Dphp_dir.h37 PHP_FUNCTION(glob);
/PHP-5.3/win32/
H A Dglob.h99 PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *);
/PHP-5.3/scripts/dev/
H A Dextern_c.php6 foreach (glob("$dir/*") as $file) {
/PHP-5.3/ext/spl/tests/
H A Ddit_001_noglob.phpt2 SPL: Problem with casting to string (no glob version)
H A Ddit_001.phpt21 %s"glob"%s"DirectoryIterator":private]=>
H A Ddit_002.phpt18 $obj = $ref->newInstance('glob://*');
/PHP-5.3/ext/standard/tests/general_functions/
H A Dbug44394_2.phpt30 foreach (glob(__DIR__ . '/sess_*') as $filename) {
/PHP-5.3/ext/session/tests/
H A Dbug42596.phpt28 foreach (glob($sessdir. "*") as $sessfile) {
/PHP-5.3/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt11 foreach (glob(__DIR__ . "/resources/*") as $filename) {
/PHP-5.3/ext/pcre/
H A Dupgrade-pcre.php6 $newpcre = glob($pattern);

Completed in 52 milliseconds

12