Home
last modified time | relevance | path

Searched refs:globbuf (Results 1 – 3 of 3) sorted by relevance

/PHP-7.3/ext/standard/
H A Ddir.c433 glob_t globbuf; in PHP_FUNCTION() local
473 memset(&globbuf, 0, sizeof(glob_t)); in PHP_FUNCTION()
474 globbuf.gl_offs = 0; in PHP_FUNCTION()
475 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
493 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in PHP_FUNCTION()
514 for (n = 0; n < (size_t)globbuf.gl_pathc; n++) { in PHP_FUNCTION()
516 if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0)) { in PHP_FUNCTION()
532 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in PHP_FUNCTION()
540 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip); in PHP_FUNCTION()
543 globfree(&globbuf); in PHP_FUNCTION()
/PHP-7.3/ext/opcache/
H A Dzend_accelerator_blacklist.c324 glob_t globbuf; local
328 memset(&globbuf, 0, sizeof(glob_t));
330 ret = glob(filename, 0, NULL, &globbuf);
332 if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
334 if (!globbuf.gl_pathc) {
338 for(i=0 ; i<globbuf.gl_pathc; i++) {
339 zend_accel_blacklist_loadone(blacklist, globbuf.gl_pathv[i]);
341 globfree(&globbuf);
/PHP-7.3/ext/zip/
H A Dphp_zip.c521 glob_t globbuf; in php_zip_glob() local
553 globbuf.gl_offs = 0; in php_zip_glob()
554 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
573 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
580 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob()
586 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
598 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
606 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip); in php_zip_glob()
609 ret = globbuf.gl_pathc; in php_zip_glob()
610 globfree(&globbuf); in php_zip_glob()

Completed in 24 milliseconds