Home
last modified time | relevance | path

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

/PHP-5.3/ext/standard/
H A Ddir.c434 glob_t globbuf; in PHP_FUNCTION() local
476 memset(&globbuf, 0, sizeof(glob_t)); in PHP_FUNCTION()
477 globbuf.gl_offs = 0; in PHP_FUNCTION()
478 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
496 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in PHP_FUNCTION()
510 for (n = 0; n < globbuf.gl_pathc; n++) { in PHP_FUNCTION()
512 …if (PG(safe_mode) && (!php_checkuid_ex(globbuf.gl_pathv[n], NULL, CHECKUID_CHECK_FILE_AND_DIR, CHE… in PHP_FUNCTION()
515 } else if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0 TSRMLS_CC)) { in PHP_FUNCTION()
531 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in PHP_FUNCTION()
539 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in PHP_FUNCTION()
[all …]
/PHP-5.3/ext/zip/
H A Dphp_zip.c537 glob_t globbuf; in php_zip_glob() local
569 globbuf.gl_offs = 0; in php_zip_glob()
570 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
589 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
596 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob()
602 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
614 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
622 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in php_zip_glob()
625 globfree(&globbuf); in php_zip_glob()
626 return globbuf.gl_pathc; in php_zip_glob()

Completed in 16 milliseconds