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

/PHP_TRUNK/ext/standard/
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)) {
H A Dlink.c88 char *dirname; local
97 dirname = estrndup(link, link_len);
98 php_dirname(dirname, link_len);
100 if (php_check_open_basedir(dirname)) {
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 Ddir.c221 char *dirname; local
227 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|r", &dirname, &dir_len, &zcontext) == FAILURE) {
233 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context);
245 add_property_stringl(return_value, "path", dirname, dir_len);
H A Dphp_string.h45 PHP_FUNCTION(dirname); variable
H A Dstring.c1651 /* {{{ proto string dirname(string path[, int levels])
1653 PHP_FUNCTION(dirname)
1689 char *path, *dirname; local
1704 dirname = estrndup(path, path_len);
1705 php_dirname(dirname, path_len);
1706 if (*dirname) {
1707 add_assoc_string(&tmp, "dirname", dirname);
1709 efree(dirname);
/PHP_TRUNK/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.c747 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash) argument
753 snprintf(ini_file, MAXPATHLEN, "%s%c%s", dirname, DEFAULT_SLASH, ini_filename);
/PHP_TRUNK/ext/session/
H A Dmod_files.c276 static int ps_files_cleanup_dir(const char *dirname, zend_long maxlifetime) argument
287 dir = opendir(dirname);
289 php_error_docref(NULL, E_NOTICE, "ps_files_cleanup_dir: opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
295 dirname_len = strlen(dirname);
297 /* Prepare buffer (dirname never changes) */
298 memcpy(buf, dirname, dirname_len);
/PHP_TRUNK/main/streams/
H A Dstreams.c2270 PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, argument
2283 stream = php_stream_opendir(dirname, REPORT_ERRORS, context);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c3639 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len) argument
3644 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1))) {
3646 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Directory %s does not exist and cannot be created: %s", dirname, error);
3649 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Directory %s does not exist and cannot be created", dirname);
3764 /* {{{ proto string Phar::addEmptyDir(string dirname)
3769 char *dirname; local
3774 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &dirname, &dirname_len) == FAILURE) {
3778 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3783 phar_mkdir(&phar_obj->archive, dirname, dirname_len);
4117 /* perform dirname */
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c558 /* dirname(IS_CONST/IS_STRING) -> IS_CONST/IS_STRING */
559 } else if (Z_STRLEN(ZEND_OP2_LITERAL(init_opline)) == sizeof("dirname")-1 &&
561 "dirname", sizeof("dirname") - 1) &&
562 !zend_optimizer_is_disabled_func("dirname", sizeof("dirname") - 1) &&
564 zend_string *dirname = zend_string_init(Z_STRVAL(ZEND_OP1_LITERAL(send1_opline)), Z_STRLEN(ZEND_OP1_LITERAL(send1_opline)), 0); local
565 ZSTR_LEN(dirname) = zend_dirname(ZSTR_VAL(dirname), ZSTR_LEN(dirname));
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c560 so checking the dirname of the first match should be sufficient */
1552 /* {{{ proto bool ZipArchive::createEmptyDir(string dirname)
1558 char *dirname; local
1571 &dirname, &dirname_len) == FAILURE) {
1579 if (dirname[dirname_len-1] != '/') {
1581 strcpy(s, dirname);
1585 s = dirname;
1599 if (s != dirname) {
2807 ZEND_ARG_INFO(0, dirname)
/PHP_TRUNK/Zend/
H A Dzend_compile.c1698 * This means dirname("c:foo") maps to "c:." or "c:" - which means CWD on C: drive.
1705 /* Return "c:" on Win32 for dirname("c:").
5649 zend_string *dirname = zend_string_init(ZSTR_VAL(filename), ZSTR_LEN(filename), 0); local
5650 zend_dirname(ZSTR_VAL(dirname), ZSTR_LEN(dirname));
5652 if (strcmp(ZSTR_VAL(dirname), ".") == 0) {
5653 dirname = zend_string_extend(dirname, MAXPATHLEN, 0);
5655 ZEND_IGNORE_VALUE(VCWD_GETCWD(ZSTR_VAL(dirname), MAXPATHLEN));
5657 ZEND_IGNORE_VALUE(VCWD_GETWD(ZSTR_VAL(dirname)));
[all...]

Completed in 88 milliseconds