Home
last modified time | relevance | path

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

/PHP-5.6/ext/standard/
H A Ddir.c434 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.6/ext/opcache/
H A Dzend_accelerator_blacklist.c334 glob_t globbuf; local
338 memset(&globbuf, 0, sizeof(glob_t));
340 ret = glob(filename, 0, NULL, &globbuf);
342 if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
344 if (!globbuf.gl_pathc) {
348 for(i=0 ; i<globbuf.gl_pathc; i++) {
349 zend_accel_blacklist_loadone(blacklist, globbuf.gl_pathv[i]);
351 globfree(&globbuf);
/PHP-5.6/ext/zip/
H A Dphp_zip.c538 glob_t globbuf; in php_zip_glob() local
570 globbuf.gl_offs = 0; in php_zip_glob()
571 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
590 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
597 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob()
603 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
615 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
623 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in php_zip_glob()
626 globfree(&globbuf); in php_zip_glob()
627 return globbuf.gl_pathc; in php_zip_glob()

Completed in 18 milliseconds