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

/PHP_TRUNK/ext/phar/
H A Dphar_object.c3623 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len TSRMLS_DC) argument
3628 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1 TSRMLS_CC))) {
3630 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created: %s", dirname, error);
3633 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Directory %s does not exist and cannot be created", dirname);
3748 /* {{{ proto string Phar::addEmptyDir(string dirname)
3753 char *dirname; local
3758 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dirname, &dirname_len) == FAILURE) {
3762 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3767 phar_mkdir(&phar_obj->archive, dirname, dirname_len TSRMLS_CC);
4102 /* perform dirname */
[all...]
/PHP_TRUNK/ext/session/
H A Dmod_files.c185 static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) argument
196 dir = opendir(dirname);
198 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
204 dirname_len = strlen(dirname);
206 /* Prepare buffer (dirname never changes) */
207 memcpy(buf, dirname, dirname_len);
/PHP_TRUNK/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);
H A Dstring.c1496 /* {{{ proto string dirname(string path)
1498 PHP_FUNCTION(dirname)
1520 char *path, *dirname; local
1535 dirname = estrndup(path, path_len);
1536 php_dirname(dirname, path_len);
1537 if (*dirname) {
1538 add_assoc_string(&tmp, "dirname", dirname);
1540 efree(dirname);
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c551 so checking the dirname of the first match should be sufficient */
1518 /* {{{ proto bool ZipArchive::createEmptyDir(string dirname)
1524 char *dirname; local
1537 &dirname, &dirname_len) == FAILURE) {
1545 if (dirname[dirname_len-1] != '/') {
1547 strcpy(s, dirname);
1551 s = dirname;
1565 if (s != dirname) {
2704 ZEND_ARG_INFO(0, dirname)
/PHP_TRUNK/Zend/
H A Dzend_compile.c1546 * This means dirname("c:foo") maps to "c:." or "c:" - which means CWD on C: drive.
1553 /* Return "c:" on Win32 for dirname("c:").
4932 zend_string *dirname = zend_string_init(filename->val, filename->len, 0); local
4933 zend_dirname(dirname->val, dirname->len);
4935 if (strcmp(dirname->val, ".") == 0) {
4936 dirname = zend_string_realloc(dirname, MAXPATHLEN, 0);
4938 VCWD_GETCWD(dirname->val, MAXPATHLEN);
4940 VCWD_GETWD(dirname
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c746 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC) argument
752 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_TRUNK/main/streams/
H A Dstreams.c2280 PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, argument
2293 stream = php_stream_opendir(dirname, REPORT_ERRORS, context);

Completed in 40 milliseconds