Home
last modified time | relevance | path

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

/PHP-5.5/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.5/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.5/ext/zip/
H A Dphp_zip.c528 glob_t globbuf; in php_zip_glob() local
560 globbuf.gl_offs = 0; in php_zip_glob()
561 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
580 if (!globbuf.gl_pathc || !globbuf.gl_pathv) { in php_zip_glob()
587 strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN); in php_zip_glob()
593 for (n = 0; n < globbuf.gl_pathc; n++) { in php_zip_glob()
605 if (0 != VCWD_STAT(globbuf.gl_pathv[n], &s)) { in php_zip_glob()
613 add_next_index_string(return_value, globbuf.gl_pathv[n]+cwd_skip, 1); in php_zip_glob()
616 globfree(&globbuf); in php_zip_glob()
617 return globbuf.gl_pathc; in php_zip_glob()

Completed in 36 milliseconds