Searched defs:dir (Results 1 - 25 of 28) sorted by relevance

12

/PHP_TRUNK/TSRM/
H A Dreaddir.h34 char *dir; /* the dir we are reading */ member in struct:__anon3
/PHP_TRUNK/ext/phar/tests/files/
H A Dpear2coverage.phar.php573 $dir = $testpath;
575 $globdirs = glob($dir . '/*', GLOB_ONLYDIR); variable
578 $dir = $dirs[$index++];
582 $dir = $dirs[$index];
589 foreach ($dirs as $dir) {
590 $globbie = glob($dir . '/*.xdebug');
855 $dir = $testpath;
857 $globdirs = glob($dir . '/*', GLOB_ONLYDIR); variable
860 $dir = $dirs[$index++];
864 $dir
570 $dir = $testpath; variable
579 $dir = $dirs[$index]; variable
852 $dir = $testpath; variable
861 $dir = $dirs[$index]; variable
[all...]
/PHP_TRUNK/ext/spl/examples/
H A Dphar_from_dir.php33 $dir = new RecursiveDirectoryIterator($argv[2]); variable
34 $dir = new RecursiveIteratorIterator($dir); variable
37 $dir = new RegexIterator($dir, '/'.$argv[3].'/'); variable
42 foreach($dir as $file)
/PHP_TRUNK/win32/
H A Dreaddir.h38 char *dir; /* the dir we are reading */ member in struct:__anon567
H A Dreaddir.c22 DIR *opendir(const char *dir) argument
31 if (!VCWD_REALPATH(dir, resolved_path_buff)) {
64 dp->dir = strdup(resolved_path_buff);
129 if (dp->dir)
130 free(dp->dir);
149 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1);
154 strcpy(filespec, dp->dir);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local
61 _splitpath(filename, drive, dir, fname, ext);
63 (*dir == '\0') ? "./" : dir,
H A Dcdf.c598 const cdf_sat_t *sat, cdf_dir_t *dir)
611 dir->dir_len = ns * nd;
612 dir->dir_tab = CAST(cdf_directory_t *,
613 calloc(dir->dir_len, sizeof(dir->dir_tab[0])));
614 if (dir->dir_tab == NULL)
618 free(dir->dir_tab);
624 DPRINTF(("Read dir loop limit"));
633 cdf_unpack_dir(&dir->dir_tab[i * nd + j],
639 for (i = 0; i < dir
597 cdf_read_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, cdf_dir_t *dir) argument
693 cdf_read_short_stream(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn, const cdf_directory_t **root) argument
734 cdf_read_summary_info(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument
1148 cdf_dump_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir) argument
1310 cdf_dir_t dir; local
[all...]
H A Dapprentice.c1151 php_stream *dir; local
1177 dir = php_stream_opendir((char *)fn, REPORT_ERRORS, NULL);
1178 if (!dir) {
1182 while (php_stream_readdir(dir, &d)) {
1187 php_stream_closedir(dir);
1201 php_stream_closedir(dir);
1208 php_stream_closedir(dir);
H A Dreadcdf.c325 cdf_dir_t dir; local
358 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) {
363 if ((i = cdf_read_short_stream(&info, &h, &sat, &dir, &sst,
369 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir);
372 if ((i = cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir,
394 for (j = 0; str == NULL && j < dir.dir_len; j++) {
395 d = &dir.dir_tab[j];
419 free(dir.dir_tab);
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_topal.c1381 int dir; /* +1 or -1 depending on direction */ local
1382 int dir3; /* 3*dir, for advancing inptr & errorptr */
1413 dir = -1;
1423 dir = 1;
1449 inptr += dir;
1450 outptr += dir;
1554 inptr += dir; /* Advance pixel pointers to next column */
1556 outptr += dir;
H A Dgdft.c373 char *name, *path=NULL, *dir; local
412 for (dir = gd_strtok_r (path, PATHSEPARATOR, &strtok_ptr_path); dir;
413 dir = gd_strtok_r (0, PATHSEPARATOR, &strtok_ptr_path)) {
414 if (!strcmp(dir, ".")) {
417 dir = VCWD_GETCWD(cur_dir, MAXPATHLEN);
419 dir = VCWD_GETWD(cur_dir);
421 if (!dir) {
427 snprintf(fullname, sizeof(fullname) - 1, "%s/%s%s", dir, name, ext); \
/PHP_TRUNK/ext/phar/
H A Ddirstream.c33 "phar dir",
178 * a list of files/directories that are "in" the directory represented by dir
180 static php_stream *phar_make_dirstream(char *dir, HashTable *manifest TSRMLS_DC) /* {{{ */ argument
183 int dirlen = strlen(dir);
192 if ((*dir == '/' && dirlen == 1 && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", sizeof(".phar")-1))) {
195 efree(dir);
208 if (keylen < (uint)dirlen || !strncmp(str_key->val, dir, dirlen)) {
216 if (*dir == '/') {
240 if (0 != memcmp(str_key->val, dir, dirle
[all...]
H A Dutil.c1215 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) /* {{{ */ argument
1238 if (!path_len && !dir) {
1268 if (entry->is_dir && !dir) {
1274 if (!entry->is_dir && dir == 2) {
1284 if (dir) {
1329 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1337 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dphar_object.c1471 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name);
1721 char *dir, *error, *regex = NULL; local
1735 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &dir, &dir_len, &regex, &regex_len) == FAILURE) {
1745 ZVAL_STRINGL(&arg, dir, dir_len);
1796 pass.b = dir;
/PHP_TRUNK/ext/ftp/
H A Dftp.c493 ftp_chdir(ftpbuf_t *ftp, const char *dir) argument
504 if (!ftp_putcmd(ftp, "CWD", dir)) {
541 ftp_mkdir(ftpbuf_t *ftp, const char *dir) argument
549 if (!ftp_putcmd(ftp, "MKD", dir)) {
555 /* copy out the dir from response */
557 return zend_string_init(dir, strlen(dir), 0);
573 ftp_rmdir(ftpbuf_t *ftp, const char *dir) argument
578 if (!ftp_putcmd(ftp, "RMD", dir)) {
H A Dphp_ftp.c486 char *dir; local
489 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) {
496 if (!ftp_chdir(ftp, dir)) {
556 char *dir; local
560 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) {
567 if (NULL == (tmp = ftp_mkdir(ftp, dir))) {
582 char *dir; local
585 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) {
592 if (!ftp_rmdir(ftp, dir)) {
661 char **nlist, **ptr, *dir; local
689 char **llist, **ptr, *dir; local
[all...]
/PHP_TRUNK/ext/gettext/
H A Dgettext.c55 ZEND_ARG_INFO(0, dir)
244 /* {{{ proto string bindtextdomain(string domain_name, string dir)
245 Bind to the text domain domain_name, looking for translations in dir. Returns the current domain */
248 char *domain, *dir; local
252 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &domain, &domain_len, &dir, &dir_len) == FAILURE) {
263 if (dir[0] != '\0' && strcmp(dir, "0")) {
264 if (!VCWD_REALPATH(dir, dir_name)) {
/PHP_TRUNK/ext/session/
H A Dmod_files.c187 DIR *dir; local
196 dir = opendir(dirname);
197 if (!dir) {
210 while (php_readdir_r(dir, (struct dirent *) dentry, &entry) == 0 && entry) {
233 closedir(dir);
265 /* if save path is an empty string, determine the temporary dir */
/PHP_TRUNK/ext/spl/
H A Dspl_directory.h85 } dir; member in union:_spl_filesystem_object::__anon210
/PHP_TRUNK/ext/standard/
H A Dphp_dir.h25 PHP_MINIT_FUNCTION(dir); variable
26 PHP_RINIT_FUNCTION(dir); variable
/PHP_TRUNK/sapi/roxen/
H A Droxen.c576 char *dir; local
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_nonapi.c969 const char *name = NULL, *collation = NULL, *dir = NULL, *comment = NULL; local
987 dir = (char *)cs.dir;
1011 add_property_string(return_value, "dir", (dir) ? (char *)dir : "");
/PHP_TRUNK/main/
H A Dphp_open_temporary_file.c262 * Unlike tempnam(), the supplied dir argument takes precedence
267 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bool open_basedir_check TSRMLS_DC) argument
279 if (!dir || *dir == '\0') {
291 fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC);
299 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument
301 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0 TSRMLS_CC);
304 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument
307 int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC);
/PHP_TRUNK/ext/date/lib/
H A Dparse_iso_intervals.c160 timelib_ull dir = 1; local
172 dir *= -1;
176 return dir * timelib_get_nr(ptr, max_length);
/PHP_TRUNK/main/streams/
H A Dplain_wrapper.c193 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, char **opened_path_ptr STREAMS_DC TSRMLS_DC) argument
198 fd = php_open_temporary_fd(dir, pfx, &opened_path TSRMLS_CC);
851 DIR *dir = (DIR*)stream->abstract; local
861 if (php_readdir_r(dir, (struct dirent *)entry, &result) == 0 && result) {
882 "dir",
892 DIR *dir = NULL; local
905 dir = VCWD_OPENDIR(path);
908 if (!dir) {
912 if (dir && dir
1185 php_plain_files_mkdir(php_stream_wrapper *wrapper, const char *dir, int mode, int options, php_stream_context *context TSRMLS_DC) argument
[all...]

Completed in 62 milliseconds

12