Searched refs:globbuf (Results 1 – 2 of 2) sorted by relevance
/PHP-5.4/ext/standard/ |
H A D | dir.c | 434 glob_t globbuf; in PHP_FUNCTION() local 472 memset(&globbuf, 0, sizeof(glob_t)); in PHP_FUNCTION() 473 globbuf.gl_offs = 0; in PHP_FUNCTION() 474 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION() 492 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in PHP_FUNCTION() 511 for (n = 0; n < globbuf.gl_pathc; n++) { in PHP_FUNCTION() 513 if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0 TSRMLS_CC)) { in PHP_FUNCTION() 529 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in PHP_FUNCTION() 537 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in PHP_FUNCTION() 540 globfree(&globbuf); in PHP_FUNCTION()
|
/PHP-5.4/ext/zip/ |
H A D | php_zip.c | 528 glob_t globbuf; in php_zip_glob() local 560 globbuf.gl_offs = 0; in php_zip_glob() 561 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob() 580 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob() 587 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob() 593 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob() 605 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob() 613 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in php_zip_glob() 616 globfree(&globbuf); in php_zip_glob() 617 return globbuf.gl_pathc; in php_zip_glob()
|
Completed in 12 milliseconds