Home
last modified time | relevance | path

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

/PHP-7.0/ext/opcache/
H A Dzend_accelerator_blacklist.c315 glob_t globbuf; local
319 memset(&globbuf, 0, sizeof(glob_t));
321 ret = glob(filename, 0, NULL, &globbuf);
323 if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
325 if (!globbuf.gl_pathc) {
329 for(i=0 ; i<globbuf.gl_pathc; i++) {
330 zend_accel_blacklist_loadone(blacklist, globbuf.gl_pathv[i]);
332 globfree(&globbuf);
/PHP-7.0/ext/standard/
H A Ddir.c441 glob_t globbuf; in PHP_FUNCTION() local
479 memset(&globbuf, 0, sizeof(glob_t)); in PHP_FUNCTION()
480 globbuf.gl_offs = 0; in PHP_FUNCTION()
481 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
499 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in PHP_FUNCTION()
518 for (n = 0; n < globbuf.gl_pathc; n++) { in PHP_FUNCTION()
520 if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0)) { in PHP_FUNCTION()
536 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in PHP_FUNCTION()
544 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip); in PHP_FUNCTION()
547 globfree(&globbuf); in PHP_FUNCTION()
/PHP-7.0/ext/zip/
H A Dphp_zip.c501 glob_t globbuf; in php_zip_glob() local
533 globbuf.gl_offs = 0; in php_zip_glob()
534 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
553 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
560 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob()
566 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
578 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
586 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip); in php_zip_glob()
589 globfree(&globbuf); in php_zip_glob()
590 return globbuf.gl_pathc; in php_zip_glob()

Completed in 22 milliseconds