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

/PHP_5_4/ext/standard/
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
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);
/PHP_5_4/ext/zip/
H A Dphp_zip.c586 so checking the dirname of the first match should be sufficient */
1597 /* {{{ proto bool ZipArchive::createEmptyDir(string dirname)
1603 char *dirname; local
1616 &dirname, &dirname_len) == FAILURE) {
1624 if (dirname[dirname_len-1] != '/') {
1626 strcpy(s, dirname);
1630 s = dirname;
1643 if (s != dirname) {
2628 ZEND_ARG_INFO(0, dirname)
/PHP_5_4/main/
H A Dphp_ini.c719 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC) argument
725 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_4/Zend/
H A Dzend_language_scanner.c4217 char *dirname; local
4223 dirname = estrndup(filename, filename_len);
4224 zend_dirname(dirname, filename_len);
4226 if (strcmp(dirname, ".") == 0) {
4227 dirname = erealloc(dirname, MAXPATHLEN);
4229 VCWD_GETCWD(dirname, MAXPATHLEN);
4231 VCWD_GETWD(dirname);
4235 zendlval->value.str.len = strlen(dirname);
4236 zendlval->value.str.val = dirname;
[all...]
/PHP_5_4/ext/session/
H A Dmod_files.c214 static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) argument
225 dir = opendir(dirname);
227 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
233 dirname_len = strlen(dirname);
235 /* Prepare buffer (dirname never changes) */
236 memcpy(buf, dirname, dirname_len);
/PHP_5_4/ext/phar/
H A Dphar_object.c3762 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len TSRMLS_DC) argument
3767 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1 TSRMLS_CC))) {
3769 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created: %s", dirname, error);
3772 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created", dirname);
3887 /* {{{ proto string Phar::addEmptyDir(string dirname)
3892 char *dirname; local
3897 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dirname, &dirname_len) == FAILURE) {
3901 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3906 phar_mkdir(&phar_obj->arc.archive, dirname, dirname_len TSRMLS_CC);
4243 /* perform dirname */
[all...]
/PHP_5_4/main/streams/
H A Dstreams.c2349 PHPAPI int _php_stream_scandir(char *dirname, char **namelist[], int flags, php_stream_context *context, argument
2362 stream = php_stream_opendir(dirname, REPORT_ERRORS, context);

Completed in 26 milliseconds