Home
last modified time | relevance | path

Searched refs:directory (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/PHP-7.0/ext/standard/tests/file/
H A Dmkdir_rmdir_variation-win32.phpt12 Description: Makes directory
58 -- Changing mode of directory to 0 --
61 -- Changing mode of directory to 1 --
64 -- Changing mode of directory to 2 --
67 -- Changing mode of directory to 3 --
70 -- Changing mode of directory to 4 --
73 -- Changing mode of directory to 5 --
76 -- Changing mode of directory to 6 --
79 -- Changing mode of directory to 7 --
82 -- Changing mode of directory to 8 --
[all …]
H A Dmkdir_rmdir_variation1.phpt22 Description: Makes directory
43 -- Changing mode of directory to 0 --
46 -- Changing mode of directory to 1 --
49 -- Changing mode of directory to 2 --
52 -- Changing mode of directory to 3 --
55 -- Changing mode of directory to 4 --
58 -- Changing mode of directory to 5 --
61 -- Changing mode of directory to 6 --
64 -- Changing mode of directory to 7 --
67 -- Changing mode of directory to 8 --
[all …]
H A Drename_variation5.phpt32 echo "\n-- Renaming directory to same directory name --\n";
35 echo "\n-- Renaming existing link to existing directory name --\n";
68 -- Renaming directory to same directory name --
71 -- Renaming existing link to existing directory name --
73 Warning: rename(%s,%s): Is a directory in %s on line %d
79 -- Renaming existing file to existing directory name --
81 Warning: rename(%s,%s): Is a directory in %s on line %d
87 -- Renaming existing directory to existing file name --
89 Warning: rename(%s,%s): Not a directory in %s on line %d
92 -- Renaming existing directory to existing link name --
[all …]
H A Duserwrapper.phpt14 function mkdir($directory, $mode, $options) {
15 …printf("Making directory: %s as %o%s\n", $directory, $mode, $options & STREAM_MKDIR_RECURSIVE ? " …
18 function rmdir($directory, $options) {
19 print "Removing directory: $directory\n";
40 mkdir('test://example.com/path/to/directory', 0755);
41 rmdir('test://example.com/path/to/directory');
49 Making directory: test://example.com/path/to/directory as 755
50 Removing directory: test://example.com/path/to/directory
H A Dunlink_variation10.phpt52 echo "\n--- try to unlink a directory ---\n";
70 echo "directory unlinked\n";
87 directory unlinked
89 directory unlinked
91 directory unlinked
93 directory unlinked
95 directory unlinked
97 directory unlinked
99 directory unlinked
101 directory unlinked
[all …]
H A Drename_variation3-win32.phpt12 Description: Renames a file or directory
17 /* creating directory */
36 echo "\n-- Renaming directory to same directory name --\n";
40 echo "\n-- Renaming existing file to existing directory name --\n";
45 echo "\n-- Renaming existing directory to existing file name --\n";
68 -- Renaming directory to same directory name --
72 -- Renaming existing file to existing directory name --
79 -- Renaming existing directory to existing file name --
H A Dfile_put_contents_variation5.phpt9 $thisTestDir = dirname(__FILE__) . '/' .basename(__FILE__, ".php") . ".directory";
33 … file_put_contents($filename, (binary) "File written in working directory", FILE_USE_INCLUDE_PATH);
46 File written in working directory
47 File written in working directory
48 File written in working directory
49 File written in working directory
H A Dtempnam_variation1-win32.phpt42 echo "directory specified\n";
66 File created in => directory specified
70 File created in => directory specified
74 File created in => directory specified
78 File created in => directory specified
82 File created in => directory specified
86 File created in => directory specified
90 File created in => directory specified
94 File created in => directory specified
98 File created in => directory specified
[all …]
H A Dfopen_include_path.inc7 //invalid directory
15 //create the include directory structure
29 //create the include directory structure
45 //create the include directory structure
61 //create the include directory structure
78 // remove the directory structure
87 // remove the directory structure
/PHP-7.0/ext/session/
H A Dmod_files.sh19 directory="$1"
33 while [[ -d $directory ]] && [[ $( ls $directory ) ]]; do
34 echo "Directory $directory is not empty! What would you like to do?"
41 echo "Deleting $directory contents... "
42 rm -rf $directory/*
45 read directory
54 if [[ ! -d $directory ]]; then
55 mkdir -p $directory
59 echo "Creating session path in $directory with a depth of $depth for session.hash_bits_per_characte…
62 newpath="$directory/$i"
/PHP-7.0/tests/security/
H A Dopen_basedir.inc5 // SAPIs set the working directory differently. So simply creating a directory
23 $directory = substr($directory, 0, -1);
36 $handle = opendir($directory);
54 @chmod($directory, 0777);
55 rmdir($directory);
62 $directory = getcwd();
84 $directory = $savedDirectory;
92 $directory = getcwd();
93 $savedDirectory = $directory;
94 var_dump(chdir($directory));
[all …]
/PHP-7.0/ext/standard/tests/dir/
H A Dclosedir_variation2.phpt2 Test closedir() function : usage variations - close directory handle twice
17 //create temporary directory for test, removed in CLEAN section
18 $directory = dirname(__FILE__) . "/closedir_variation2";
19 mkdir($directory);
21 $dh = opendir($directory);
23 echo "\n-- Close directory handle first time: --\n";
28 echo "\n-- Close directory handle second time: --\n";
36 $directory = dirname(__FILE__) . "/closedir_variation2";
37 rmdir($directory);
42 -- Close directory handle first time: --
[all …]
H A Dchdir_variation2.phpt5 /* Prototype : bool chdir(string $directory)
6 * Description: Change the current directory
38 echo "\n-- \$directory = '..': --\n";
47 echo "\n-- \$directory = '../': --\n";
51 echo "\n-- \$directory = './': --\n";
72 -- $directory = './level2_one': --
82 -- $directory = '..': --
86 -- $directory = 'level2_two', '.': --
91 -- $directory = '../': --
95 -- $directory = './': --
[all …]
H A Ddir_variation6.phpt2 Test dir() function : usage variations - non-existent directory
12 * Prototype : object dir(string $directory[, resource $context])
23 // create the temporary directory
28 // open existent directory
32 // remove directory and try to open the same(non-existent) directory again
36 echo "-- opening previously removed directory --\n";
39 // point to a non-existent directory
41 echo "-- opening non-existent directory --\n";
48 *** Testing dir() : open a non-existent directory ***
49 -- opening previously removed directory --
[all …]
H A Ddir_variation4.phpt6 * Prototype : object dir(string $directory[, resource $context])
13 * directory which is already open.
21 // create the temporary directory
26 // create files within the temporary directory
29 // open the directory
33 // open the same directory again without closing it
37 echo "-- reading directory contents with previous handle --\n";
40 echo "-- reading directory contents with current handle --\n";
55 *** Testing dir() : operate on previously opened directory ***
68 -- reading directory contents with previous handle --
[all …]
H A Dchdir_error2.phpt2 Test chdir() function : error conditions - Non-existent directory
5 /* Prototype : bool chdir(string $directory)
6 * Description: Change the current directory
11 * Pass a directory that does not exist as $directory to chdir() to test behaviour
16 $directory = __FILE__ . '/idonotexist';
18 var_dump(chdir($directory));
H A Dgetcwd_basic.phpt6 * Description: Gets the current directory
16 //create temporary directory for test, removed in CLEAN section
17 $directory = dirname(__FILE__) . "/getcwd_basic";
18 mkdir($directory);
21 chdir($directory);
27 $directory = dirname(__FILE__) . "/getcwd_basic";
28 rmdir($directory);
H A Dscandir_basic.phpt19 // set up directory
20 $directory = dirname(__FILE__) . '/scandir_basic';
21 mkdir($directory);
22 create_files($directory, 3);
25 var_dump(scandir($directory));
30 var_dump(scandir($directory, $sorting_order, $context));
32 delete_files($directory, 3);
37 $directory = dirname(__FILE__) . '/scandir_basic';
38 rmdir($directory);
H A Dopendir_variation3.phpt2 Test opendir() function : usage variations - open a directory twice
6 * Description: Open a directory and return a dir_handle
11 * Call opendir() twice with the same directory as $path argument
19 echo "\n-- Open directory first time: --\n";
22 echo "\n-- Open directory second time: --\n";
43 -- Open directory first time: --
46 -- Open directory second time: --
H A Ddir_variation5.phpt2 Test dir() function : usage variations - open a file instead of directory
12 * Prototype : object dir(string $directory[, resource $context])
18 * Passing a file as argument to dir() function instead of a directory
22 echo "*** Testing dir() : open a file instead of a directory ***\n";
24 // open the file instead of directory
31 *** Testing dir() : open a file instead of a directory ***
/PHP-7.0/ext/sqlite3/tests/
H A Dsqlite3_21_security.phpt11 $directory = dirname(__FILE__) . '/';
14 echo "Within test directory\n";
15 $db = new SQLite3($directory . $file);
18 unlink($directory . $file);
20 echo "Above test directory\n";
30 Within test directory
34 Above test directory
/PHP-7.0/ext/phar/tests/
H A Dmkdir.phpt35 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %smkd…
37 Warning: mkdir(): phar error: cannot create directory "" in phar "foo.phar", phar error: invalid pa…
39 …): phar error: cannot create directory "a" in phar "%smkdir.phar.php", phar error: path "a" exists…
41 Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified, or phar…
43 Warning: rmdir(): phar error: cannot remove directory "" in phar "foo.phar", directory does not exi…
45 …): phar error: cannot remove directory "a" in phar "%smkdir.phar.php", phar error: path "a" exists…
46 Cannot create a directory in magic ".phar" directory
H A Ddir.phpt37 file_put_contents('phar://' . dirname(__FILE__) . '/ok.phar/sub/directory.txt', 'hi');
39 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/sub/directory.txt');
69 Warning: mkdir(): phar error: cannot create directory "phar://%sdir.phar.php/fails", write operatio…
71 Warning: mkdir(): phar error: cannot create directory "fails" in phar "%sok.phar", directory alread…
73 Warning: mkdir(): phar error: cannot create directory "sub" in phar "%sok.phar", directory already …
75 …r: cannot create directory "sub/directory.txt" in phar "%sok.phar", phar error: path "sub/director…
79 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %sdir…
83 Warning: rmdir(): phar error: cannot remove directory "hi" in phar "%sunknown.phar", directory does…
85 Warning: rmdir(): phar error: cannot rmdir directory "phar://%sdir.phar.php/another/dir", write ope…
87 Warning: rmdir(): phar error: cannot remove directory "" in phar "%sdir.phar.php", directory does n…
[all …]
/PHP-7.0/ext/session/tests/
H A Dsession_save_path_variation5.phpt23 $directory = dirname(__FILE__);
24 $sessions = ($directory."/sessions");
26 chdir($directory);
28 // Delete the existing directory
35 ini_set("session.save_path", $directory);
43 $directory = dirname(__FILE__);
44 $sessions = ($directory."/sessions");
/PHP-7.0/ext/zlib/tests/
H A Dgzopen_include_path.inc7 //invalid directory
15 //create the include directory structure
29 //create the include directory structure
45 //create the include directory structure
61 //create the include directory structure
78 // remove the directory structure
87 // remove the directory structure

Completed in 35 milliseconds

12345678910>>...21