Home
last modified time | relevance | path

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

/php-src/ext/standard/
H A Ddir.c341 glob_t globbuf; in PHP_FUNCTION() local
382 memset(&globbuf, 0, sizeof(glob_t)); in PHP_FUNCTION()
383 globbuf.gl_offs = 0; in PHP_FUNCTION()
384 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
402 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in PHP_FUNCTION()
411 for (n = 0; n < (size_t)globbuf.gl_pathc; n++) { in PHP_FUNCTION()
413 if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0)) { in PHP_FUNCTION()
429 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in PHP_FUNCTION()
437 ZVAL_STRING(&tmp, globbuf.gl_pathv[n]+cwd_skip); in PHP_FUNCTION()
441 globfree(&globbuf); in PHP_FUNCTION()
/php-src/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-src/ext/zip/
H A Dphp_zip.c624 glob_t globbuf; in php_zip_glob() local
657 globbuf.gl_offs = 0; in php_zip_glob()
658 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
677 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
684 if (ZIP_OPENBASEDIR_CHECKPATH(globbuf.gl_pathv[0])) { in php_zip_glob()
689 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
701 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
709 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip); in php_zip_glob()
712 ret = globbuf.gl_pathc; in php_zip_glob()
713 globfree(&globbuf); in php_zip_glob()
/php-src/ext/ffi/
H A Dffi.c5280 glob_t globbuf; local
5284 memset(&globbuf, 0, sizeof(glob_t));
5286 ret = glob(filename, 0, NULL, &globbuf);
5288 if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
5290 if (!globbuf.gl_pathc) {
5294 for(i=0 ; i<globbuf.gl_pathc; i++) {
5295 zend_ffi *ffi = zend_ffi_load(globbuf.gl_pathv[i], 1);
5297 globfree(&globbuf);
5302 globfree(&globbuf);

Completed in 61 milliseconds