Searched defs:dirname (Results 1 - 11 of 11) sorted by relevance

/PHP_5_3/ext/session/
H A Dmod_files.c209 static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) argument
220 dir = opendir(dirname);
222 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
228 dirname_len = strlen(dirname);
230 /* Prepare buffer (dirname never changes) */
231 memcpy(buf, dirname, dirname_len);
/PHP_5_3/ext/standard/
H A Ddir.c212 char *dirname; local
218 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|r", &dirname, &dir_len, &zcontext) == FAILURE) {
224 dirp = php_stream_opendir(dirname, ENFORCE_SAFE_MODE|REPORT_ERRORS, context);
236 add_property_stringl(return_value, "path", dirname, dir_len, 1);
H A Dlink.c97 char *dirname; local
106 dirname = estrndup(link, link_len);
107 dir_len = php_dirname(dirname, link_len);
109 if (php_check_open_basedir(dirname TSRMLS_CC)) {
110 efree(dirname);
117 efree(dirname);
121 efree(dirname);
135 char dirname[MAXPATHLEN]; local
155 memcpy(dirname, source_p, sizeof(source_p));
156 len = php_dirname(dirname, strle
[all...]
H A Dlink_win32.c110 char dirname[MAXPATHLEN]; local
139 memcpy(dirname, source_p, sizeof(source_p));
140 len = php_dirname(dirname, strlen(dirname));
142 if (!expand_filepath_ex(topath, dest_p, dirname, len TSRMLS_CC)) {
H A Dphp_string.h45 PHP_FUNCTION(dirname); variable
/PHP_5_3/main/
H A Dphp_ini.c760 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC) argument
766 snprintf(ini_file, MAXPATHLEN, "%s%c%s", dirname, DEFAULT_SLASH, ini_filename);
H A Dphp_scandir.c60 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)) argument
73 if (!(dirp = opendir(dirname))) {
/PHP_5_3/main/streams/
H A Dstreams.c2267 PHPAPI int _php_stream_scandir(char *dirname, char **namelist[], int flags, php_stream_context *context, argument
2280 stream = php_stream_opendir(dirname, ENFORCE_SAFE_MODE | REPORT_ERRORS, context);
/PHP_5_3/Zend/
H A Dzend_language_scanner.c4026 char *dirname; local
4032 dirname = estrndup(filename, filename_len);
4033 zend_dirname(dirname, filename_len);
4035 if (strcmp(dirname, ".") == 0) {
4036 dirname = erealloc(dirname, MAXPATHLEN);
4038 VCWD_GETCWD(dirname, MAXPATHLEN);
4040 VCWD_GETWD(dirname);
4044 zendlval->value.str.len = strlen(dirname);
4045 zendlval->value.str.val = dirname;
[all...]
/PHP_5_3/ext/zip/
H A Dphp_zip.c595 so checking the dirname of the first match should be sufficient */
1601 /* {{{ proto bool ZipArchive::createEmptyDir(string dirname)
1607 char *dirname; local
1620 &dirname, &dirname_len) == FAILURE) {
1628 if (dirname[dirname_len-1] != '/') {
1630 strcpy(s, dirname);
1634 s = dirname;
1647 if (s != dirname) {
2638 ZEND_ARG_INFO(0, dirname)
/PHP_5_3/ext/phar/
H A Dphar_object.c3758 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len TSRMLS_DC) argument
3763 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1 TSRMLS_CC))) {
3765 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created: %s", dirname, error);
3768 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created", dirname);
3883 /* {{{ proto string Phar::addEmptyDir(string dirname)
3888 char *dirname; local
3893 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dirname, &dirname_len) == FAILURE) {
3897 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3902 phar_mkdir(&phar_obj->arc.archive, dirname, dirname_len TSRMLS_CC);
4238 /* perform dirname */
[all...]

Completed in 120 milliseconds