Home
last modified time | relevance | path

Searched refs:dir (Results 126 – 150 of 533) sorted by relevance

12345678910>>...22

/PHP-5.4/ext/spl/
H A Dspl_directory.c95 if (intern->u.dir.dirp) { in spl_filesystem_object_free_storage()
222 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read()
254 intern->u.dir.index = 0; in spl_filesystem_dir_open()
804 intern->u.dir.index++; in SPL_METHOD()
1539 if (intern->u.dir.sub_path && intern->u.dir.sub_path[0]) { in SPL_METHOD()
1540 …subdir->u.dir.sub_path_len = spprintf(&subdir->u.dir.sub_path, 0, "%s%c%s", intern->u.dir.sub_path… in SPL_METHOD()
1542 subdir->u.dir.sub_path_len = strlen(intern->u.dir.entry.d_name); in SPL_METHOD()
1543 subdir->u.dir.sub_path = estrndup(intern->u.dir.entry.d_name, subdir->u.dir.sub_path_len); in SPL_METHOD()
1564 RETURN_STRINGL(intern->u.dir.sub_path, intern->u.dir.sub_path_len, 1); in SPL_METHOD()
1725 object->u.dir.index++; in spl_filesystem_dir_it_move_forward()
[all …]
/PHP-5.4/ext/standard/tests/file/
H A Drename_variation12.phpt17 /* Creating unique files in various dirs by passing relative paths to $dir arg */
53 $dir = $allDirs[$i];
56 $res = rename($dir."/".$fromFile, $dir."/".$toFile);
59 $res = rename($dir."/".$toFile, $dir."/".$fromFile);
H A Ddisk_free_space_basic.phpt25 $dir = "/disk_free_space";
26 mkdir($file_path.$dir);
28 $space1 = disk_free_space($file_path.$dir);
31 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a");
37 $space2 = disk_free_space($file_path.$dir);
H A Dlstat_stat_variation17.phpt2 Test lstat() and stat() functions: usage variations - effects changing permissions of dir
19 /* test the effects on stats by changing permissions of a dir */
25 echo "*** Testing lstat() on a dir after changing its access permission ***\n";
51 *** Testing lstat() on a dir after changing its access permission ***
H A Dcopy_variation12.phpt2 Test copy() function: usage variations - dir as source (Bug #42111)
16 /* Test copy(): Trying to create a copy of an existing dir */
20 echo "*** Test copy() function: Trying to create a copy of an existing dir ***\n";
42 *** Test copy() function: Trying to create a copy of an existing dir ***
/PHP-5.4/ext/fileinfo/libmagic/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], in file_os2_apptype() local
61 _splitpath(filename, drive, dir, fname, ext); in file_os2_apptype()
63 (*dir == '\0') ? "./" : dir, in file_os2_apptype()
H A Dreadcdf.c233 cdf_dir_t dir; local
265 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) {
270 if ((i = cdf_read_short_stream(&info, &h, &sat, &dir, &sst)) == -1) {
275 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir);
278 if ((i = cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir,
298 for (j = 0; j < dir.dir_len; j++) {
299 d = &dir.dir_tab[j];
319 free(dir.dir_tab);
/PHP-5.4/ext/phar/tests/
H A Dphar_dotted_path.phpt12 $dir = dirname(__FILE__) . '/broken.dirname';
13 mkdir($dir, 0777);
15 $fname = $dir . '/dotted_path.phar';
H A D019.phpt25 $dir = opendir('phar://hio/b');
27 if ($dir) {
28 while (false !== ($a = readdir($dir))) {
/PHP-5.4/ext/simplexml/
H A Dconfig.m48 PHP_ARG_WITH(libxml-dir, libxml2 install dir,
9 [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no)
/PHP-5.4/ext/pdo/tests/
H A Dbug_50458.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dbug_40285.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dbug61292.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dbug_39398.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dpecl_bug_5772.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dpecl_bug_5809.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dbug_34687.phpt6 $dir = getenv('REDIR_TEST_DIR');
7 if (false == $dir) die('skip no driver');
8 require_once $dir . 'pdo_test.inc';
H A Dbug_43663.phpt7 $dir = getenv('REDIR_TEST_DIR');
8 if (false == $dir) die('skip no driver');
9 require_once $dir . 'pdo_test.inc';
/PHP-5.4/ext/phar/tests/zip/
H A Dunixzip.phpt11 echo "dir " . $b->getPathName() . "\n";
23 dir phar://%s/zip.zip%cempty
27 dir phar://%s/zip.zip%cnotempty
/PHP-5.4/ext/soap/
H A Dconfig.m48 PHP_ARG_WITH(libxml-dir, libxml2 install dir,
9 [ --with-libxml-dir=DIR SOAP: libxml2 install prefix], no, no)
/PHP-5.4/ext/standard/tests/general_functions/
H A Dbug44295.phpt10 $dir = '/this/path/does/not/exist';
17 $iter = new DirectoryIterator($dir);
28 in catch: DirectoryIterator::__construct(/this/path/does/not/exist): failed to open dir: No such fi…
/PHP-5.4/ext/standard/tests/dir/
H A Dopendir_variation6-win32.phpt13 * Source code: ext/standard/dir.c
56 Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d
61 Warning: opendir(%s/*): failed to open dir: %s in %s on line %d
68 Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: %s in %s on line %d
73 Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
H A Dscandir_error2.phpt11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
13 * Source code: ext/standard/dir.c
36 Warning: scandir(%s/idonotexist): failed to open dir: %s in %s on line %d
43 Warning: scandir(/idonotexist): failed to open dir: %s in %s on line %d
/PHP-5.4/tests/security/
H A Dopen_basedir_scandir.phpt32 Warning: scandir(../bad): failed to open dir: %s in %s on line %d
39 Warning: scandir(../bad/bad.txt): failed to open dir: %s in %s on line %d
46 Warning: scandir(..): failed to open dir: %s in %s on line %d
53 Warning: scandir(../): failed to open dir: %s in %s on line %d
60 Warning: scandir(/): failed to open dir: %s in %s on line %d
67 Warning: scandir(../bad/.): failed to open dir: %s in %s on line %d
74 Warning: scandir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
81 Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
/PHP-5.4/ext/libxml/tests/
H A Dbug61367-read.phpt18 $dir = htmlspecialchars(dirname(getcwd()));
19 $dir = str_replace('\\', '/', $dir); // fix for windows
22 <!ENTITY file SYSTEM "file:///$dir/bad">

Completed in 32 milliseconds

12345678910>>...22