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

/PHP_5_6/ext/standard/
H A Ddir.c216 char *dirname; local
222 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|r", &dirname, &dir_len, &zcontext) == FAILURE) {
228 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context);
240 add_property_stringl(return_value, "path", dirname, dir_len, 1);
H A Dlink.c88 char *dirname; local
97 dirname = estrndup(link, link_len);
98 dir_len = php_dirname(dirname, link_len);
100 if (php_check_open_basedir(dirname TSRMLS_CC)) {
101 efree(dirname);
108 efree(dirname);
112 efree(dirname);
126 char dirname[MAXPATHLEN]; local
138 memcpy(dirname, source_p, sizeof(source_p));
139 len = php_dirname(dirname, strle
[all...]
H A Dlink_win32.c117 char dirname[MAXPATHLEN]; local
146 memcpy(dirname, source_p, sizeof(source_p));
147 len = php_dirname(dirname, strlen(dirname));
149 if (!expand_filepath_ex(topath, dest_p, dirname, len TSRMLS_CC)) {
H A Dphp_string.h45 PHP_FUNCTION(dirname); variable
/PHP_5_6/main/
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))) {
H A Dphp_ini.c754 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC) argument
760 snprintf(ini_file, MAXPATHLEN, "%s%c%s", dirname, DEFAULT_SLASH, ini_filename);
/PHP_5_6/ext/zip/
H A Dphp_zip.c597 so checking the dirname of the first match should be sufficient */
1663 /* {{{ proto bool ZipArchive::createEmptyDir(string dirname)
1669 char *dirname; local
1682 &dirname, &dirname_len) == FAILURE) {
1690 if (dirname[dirname_len-1] != '/') {
1692 strcpy(s, dirname);
1696 s = dirname;
1710 if (s != dirname) {
2850 ZEND_ARG_INFO(0, dirname)
/PHP_5_6/Zend/
H A Dzend_language_scanner.c4199 char *dirname; local
4205 dirname = estrndup(filename, filename_len);
4206 zend_dirname(dirname, filename_len);
4208 if (strcmp(dirname, ".") == 0) {
4209 dirname = erealloc(dirname, MAXPATHLEN);
4211 VCWD_GETCWD(dirname, MAXPATHLEN);
4213 VCWD_GETWD(dirname);
4217 ZVAL_STRING(zendlval, dirname, 0);
/PHP_5_6/ext/session/
H A Dmod_files.c183 static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) argument
194 dir = opendir(dirname);
196 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
202 dirname_len = strlen(dirname);
204 /* Prepare buffer (dirname never changes) */
205 memcpy(buf, dirname, dirname_len);
/PHP_5_6/ext/phar/
H A Dphar_object.c3680 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len TSRMLS_DC) argument
3685 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1 TSRMLS_CC))) {
3687 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created: %s", dirname, error);
3690 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created", dirname);
3805 /* {{{ proto string Phar::addEmptyDir(string dirname)
3810 char *dirname; local
3815 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dirname, &dirname_len) == FAILURE) {
3819 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3824 phar_mkdir(&phar_obj->arc.archive, dirname, dirname_len TSRMLS_CC);
4161 /* perform dirname */
[all...]
/PHP_5_6/main/streams/
H A Dstreams.c2280 PHPAPI int _php_stream_scandir(const char *dirname, char **namelist[], int flags, php_stream_context *context, argument
2293 stream = php_stream_opendir(dirname, REPORT_ERRORS, context);

Completed in 78 milliseconds