Home
last modified time | relevance | path

Searched refs:chmod (Results 1 – 25 of 98) sorted by relevance

1234

/PHP-5.5/tests/security/
H A Dopen_basedir_chmod.phpt10 test_open_basedir_before("chmod");
12 var_dump(chmod("../bad", 0600));
13 var_dump(chmod("../bad/bad.txt", 0600));
14 var_dump(chmod("..", 0600));
15 var_dump(chmod("../", 0600));
16 var_dump(chmod("/", 0600));
17 var_dump(chmod("../bad/.", 0600));
19 var_dump(chmod("./../.", 0600));
22 var_dump(chmod("./ok.txt", 0600));
23 var_dump(chmod("ok.txt", 0600));
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dchmod_error.phpt2 Test chmod() function : error conditions
5 /* Prototype : bool chmod(string filename, int mode)
11 echo "*** Testing chmod() : error conditions ***\n";
14 //Test chmod with one more than the expected number of arguments
19 var_dump( chmod($filename, $mode, $extra_arg) );
21 // Testing chmod with one less than the expected number of arguments
24 var_dump( chmod($filename) );
26 // testing chmod with a non-existing file
28 var_dump(chmod($filename, 0777));
33 *** Testing chmod() : error conditions ***
[all …]
H A Dchmod_variation2-win32.phpt2 chmod() with various paths
6 die('skip Windows only chmod test');
24 echo "chmod() on a path containing .. and .\n";
25 var_dump(chmod("./$test_dirname/../$filename", 0777));
31 var_dump(chmod($filepath, 0777));
38 var_dump(chmod("../$filename", 0777));
39 var_dump(chmod("../$filename", 0755));
45 var_dump(chmod($test_dirname, 0777));
46 var_dump(chmod("$test_dirname/", 0775));
56 chmod() on a path containing .. and .
[all …]
H A Dchmod_variation2.phpt2 chmod() with various paths
31 var_dump(chmod($filepath, 0777));
39 var_dump(chmod($filepath, 0777));
40 var_dump(chmod($linkname, 0755));
47 var_dump(chmod("../$filename", 0777));
48 var_dump(chmod("../$filename", 0755));
54 var_dump(chmod($test_dirname, 0777));
55 var_dump(chmod("$test_dirname/", 0775));
65 chmod() on a path containing .. and .
77 chmod() on a linked file
[all …]
H A Dchmod_variation3.phpt2 Test chmod() function : first parameter variation
101 var_dump( chmod($value, $mode) );
107 *** Testing chmod() : usage variation ***
162 Error: 2 - chmod(): %s, %s(%d)
166 Error: 2 - chmod(): %s, %s(%d)
174 Error: 2 - chmod(): %s, %s(%d)
182 Error: 2 - chmod(): %s, %s(%d)
186 Error: 2 - chmod(): %s, %s(%d)
190 Error: 2 - chmod(): %s, %s(%d)
202 Error: 2 - chmod(): %s, %s(%d)
[all …]
H A D006_error.phpt2 Test fileperms(), chmod() functions: error conditions
26 Prototype: bool chmod ( string $filename, int $mode )
34 var_dump( chmod("/etc/passwd", 0777) );
39 var_dump( chmod("/etc", 0777) );
45 var_dump( chmod("/no/such/file/dir", 0777) );
52 var_dump( chmod(dirname(__FILE__)."/006_error.tmp") );
53 var_dump( chmod("nofile") );
54 var_dump( chmod() );
69 *** Testing error conditions for fileperms(), chmod() ***
71 Warning: chmod(): %s in %s on line %d
[all …]
H A Dchmod_variation4.phpt2 Test chmod() function : second parameter variation
5 /* Prototype : bool chmod(string filename, int mode)
11 echo "*** Testing chmod() : usage variation ***\n";
103 var_dump( chmod($filename, $value) );
106 chmod($filename, 0777);
112 *** Testing chmod() : usage variation ***
130 Error: 2 - chmod() expects parameter 2 to be long, array given, %s(%d)
134 Error: 2 - chmod() expects parameter 2 to be long, array given, %s(%d)
138 Error: 2 - chmod() expects parameter 2 to be long, array given, %s(%d)
142 Error: 2 - chmod() expects parameter 2 to be long, array given, %s(%d)
[all …]
H A D006_variation2.phpt2 Test fileperms() & chmod() functions: usage variation - misc. perms
26 Prototype: bool chmod ( string $filename, int $mode );
33 echo "*** Testing fileperms() & chmod() : usage variations ***\n";
41 echo "\n*** Testing fileperms(), chmod() with miscellaneous permissions ***\n";
71 var_dump( chmod($file_name, $permission) );
76 var_dump( chmod($dir_name, $permission) );
86 chmod(dirname(__FILE__)."/006_variation2.tmp", 0777);
87 chmod(dirname(__FILE__)."/006_variation2", 0777);
92 *** Testing fileperms() & chmod() : usage variations ***
94 *** Testing fileperms(), chmod() with miscellaneous permissions ***
[all …]
H A D006_basic.phpt2 Test fileperms() & chmod() functions: basic functionality
26 Prototype: bool chmod ( string $filename, int $mode );
32 echo "*** Testing fileperms(), chmod() with files and dirs ***\n";
34 var_dump( chmod($path."/perm.tmp", 0755 ) );
40 var_dump( chmod( $path."/perm", 0777 ) );
53 *** Testing fileperms(), chmod() with files and dirs ***
H A Dchmod_basic.phpt2 chmod() basic functionality
20 chmod($filename, $perms_to_set);
27 var_dump(chmod($filename, 0777));
H A Dchmod_variation1.phpt2 chmod() on a directory
18 chmod($dirname, $perms_to_set);
26 var_dump(chmod($dirname, 0777));
H A Duserstreams_007.phpt31 chmod("test://testdir/chmod", 0755);
48 metadata: test://testdir/chmod, 6
/PHP-5.5/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt2 Phar: PharFileInfo::chmod extra code coverage
18 $phar['a']->chmod(066);
22 $b->chmod(array());
24 $b->chmod(0666);
30 Phar entry "a" is a temporary directory (not an actual entry in the archive), cannot chmod
32 Warning: PharFileInfo::chmod() expects parameter 1 to be long, array given in %spharfileinfo_chmod.…
H A D033.phpt2 Phar::chmod
21 $a['a.php']->chmod(0777);
23 $a['a.php']->chmod(0666);
28 $a['dir']->chmod(000);
30 $a['dir']->chmod(0666);
H A D033a.phpt2 Phar::chmod
20 $a['a.php']->chmod(0777);
22 $a['a.php']->chmod(0666);
H A Dphar_oo_iswriteable.phpt26 $a['a.php']->chmod(000);
29 $a['a.php']->chmod(0666);
53 chmod($fname2, 000);
57 chmod($fname2, 0666);
/PHP-5.5/ext/posix/tests/
H A Dposix_access.phpt27 chmod ($filename, 0000);
30 chmod ($filename, 0400);
33 chmod ($filename, 0600);
36 chmod ($filename, 0700);
43 chmod ($filename, 0700);
/PHP-5.5/ext/phar/tests/tar/
H A D033.phpt2 Phar::chmod tar-based
22 $phar['a.php']->chmod(0777);
24 $phar['a.php']->chmod(0666);
28 $phar['test']->chmod(0000);
30 $phar['test']->chmod(0666);
H A D033a.phpt2 Phar::chmod tar-based
23 $phar['a.php']->chmod(0777);
25 $phar['a.php']->chmod(0666);
29 $phar['test']->chmod(0000);
31 $phar['test']->chmod(0666);
/PHP-5.5/ext/phar/tests/zip/
H A D033a.phpt2 Phar::chmod zip-based
23 $phar['a.php']->chmod(0777);
25 $phar['a.php']->chmod(0666);
29 $phar['test']->chmod(0777);
31 $phar['test']->chmod(0666);
H A D033.phpt2 Phar::chmod zip-based
23 $phar['a.php']->chmod(0777);
28 $phar['a.php']->chmod(0666);
33 $phar['test']->chmod(0000);
35 $phar['test']->chmod(0666);
/PHP-5.5/ext/standard/tests/dir/
H A Ddir_variation7.phpt42 chmod($parent_dir_path, 0777);
47 chmod($sub_dir_path, 0777);
54 chmod($sub_dir_path, 0444);
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
61 chmod($parent_dir_path, 0666); // restricting parent directory
76 chmod($parent_dir_path, 0777);
77 chmod($sub_dir_path, 0777);
78 chmod($child_dir_path, 0777);
H A Dopendir_variation5.phpt41 chmod($parent_dir_path, 0777);
46 chmod($sub_dir_path, 0777);
53 chmod($sub_dir_path, 0444);
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
61 chmod($parent_dir_path, 0666); // restricting parent directory
82 chmod($parent_dir_path, 0777);
83 chmod($sub_dir_path, 0777);
84 chmod($child_dir_path, 0777);
H A Dscandir_variation5.phpt42 chmod($parent_dir_path, 0777);
47 chmod($sub_dir_path, 0777);
54 chmod($sub_dir_path, 0444);
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
61 chmod($parent_dir_path, 0666); // restricting parent directory
74 chmod($parent_dir_path, 0777);
75 chmod($sub_dir_path, 0777);
76 chmod($child_dir_path, 0777);
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dwrite18.phar.inc10 $p["test.txt"]->chmod(0444);
16 $phar["test.txt"]->chmod(0666);

Completed in 32 milliseconds

1234