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 Dstring.c1640 /* {{{ proto string dirname(string path)
1642 PHP_FUNCTION(dirname)
1664 char *path, *dirname; local
1679 dirname = estrndup(path, path_len);
1680 php_dirname(dirname, path_len);
1681 if (*dirname) {
1682 add_assoc_string(&tmp, "dirname", dirname);
1684 efree(dirname);
H A Dphp_string.h45 PHP_FUNCTION(dirname); variable
/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.c751 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash) argument
757 snprintf(ini_file, MAXPATHLEN, "%s%c%s", dirname, DEFAULT_SLASH, ini_filename);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c3635 static void phar_mkdir(phar_archive_data **pphar, char *dirname, int dirname_len) argument
3640 if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1))) {
3642 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Directory %s does not exist and cannot be created: %s", dirname, error);
3645 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Directory %s does not exist and cannot be created", dirname);
3760 /* {{{ proto string Phar::addEmptyDir(string dirname)
3765 char *dirname; local
3770 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &dirname, &dirname_len) == FAILURE) {
3774 if (dirname_len >= sizeof(".phar")-1 && !memcmp(dirname, ".phar", sizeof(".phar")-1)) {
3779 phar_mkdir(&phar_obj->archive, dirname, dirname_len);
4114 /* perform dirname */
[all...]
/PHP_TRUNK/main/streams/
H A Dstreams.c2258 PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, argument
2271 stream = php_stream_opendir(dirname, REPORT_ERRORS, context);
/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/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.c1719 * This means dirname("c:foo") maps to "c:." or "c:" - which means CWD on C: drive.
1726 /* Return "c:" on Win32 for dirname("c:").
5476 zend_string *dirname = zend_string_init(filename->val, filename->len, 0); local
5477 zend_dirname(dirname->val, dirname->len);
5479 if (strcmp(dirname->val, ".") == 0) {
5480 dirname = zend_string_extend(dirname, MAXPATHLEN, 0);
5482 VCWD_GETCWD(dirname->val, MAXPATHLEN);
5484 VCWD_GETWD(dirname
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c547 /* dirname(IS_CONST/IS_STRING) -> IS_CONST/IS_STRING */
548 } else if (Z_STRLEN(ZEND_OP2_LITERAL(init_opline)) == sizeof("dirname")-1 &&
550 "dirname", sizeof("dirname") - 1) &&
551 !zend_optimizer_is_disabled_func("dirname", sizeof("dirname") - 1) &&
553 zend_string *dirname = zend_string_init(Z_STRVAL(ZEND_OP1_LITERAL(send1_opline)), Z_STRLEN(ZEND_OP1_LITERAL(send1_opline)), 0); local
554 dirname->len = zend_dirname(dirname->val, dirname
[all...]

Completed in 90 milliseconds