Home
last modified time | relevance | path

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

12345

/PHP-8.1/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-8.1/ext/standard/tests/file/
H A Dchmod_variation2-win32-mb.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-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_error.phpt2 Test chmod() function : error conditions
5 echo "*** Testing chmod() : error conditions ***\n";
7 // testing chmod with a non-existing file
9 var_dump(chmod($filename, 0777));
13 *** Testing chmod() : error conditions ***
15 Warning: chmod(): No such file or directory in %s on line %d
H A D006_variation2.phpt2 Test fileperms() & chmod() functions: usage variation - misc. perms
14 echo "*** Testing fileperms() & chmod() : usage variations ***\n";
53 var_dump( chmod($file_name, $permission) );
62 var_dump( chmod($dir_name, $permission) );
75 chmod(__DIR__."/006_variation2.tmp", 0777);
76 chmod(__DIR__."/006_variation2", 0777);
81 *** Testing fileperms() & chmod() : usage variations ***
83 *** Testing fileperms(), chmod() with miscellaneous permissions ***
140 chmod(): Argument #2 ($permissions) must be of type int, string given
141 chmod(): Argument #2 ($permissions) must be of type int, string given
[all …]
H A D006_error.phpt2 Test fileperms(), chmod() functions: error conditions
12 echo "*** Testing error conditions for fileperms(), chmod() ***\n";
15 var_dump( chmod("/etc/passwd", 0777) );
20 var_dump( chmod("/etc", 0777) );
26 var_dump( chmod("/no/such/file/dir", 0777) );
37 *** Testing error conditions for fileperms(), chmod() ***
39 Warning: chmod(): %s in %s on line %d
43 Warning: chmod(): %s in %s on line %d
47 Warning: chmod(): No such file or directory in %s on line %d
H A D006_basic.phpt2 Test fileperms() & chmod() functions: basic functionality
14 echo "*** Testing fileperms(), chmod() with files and dirs ***\n";
16 var_dump( chmod($path."/perm.tmp", 0755 ) );
22 var_dump( chmod( $path."/perm", 0777 ) );
35 *** 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);
49 metadata: test://testdir/chmod, 6
H A Dunlink_variation1-win32-mb.phpt35 var_dump( chmod($dirname, 0444) );
41 var_dump( chmod($dirname, 0777) );
53 var_dump( chmod($filename, 0444) );
59 chmod($filename, 0777);
/PHP-8.1/ext/standard/tests/dir/
H A Dscandir_variation5.phpt29 chmod($parent_dir_path, 0777);
34 chmod($sub_dir_path, 0777);
41 chmod($sub_dir_path, 0444);
47 chmod($sub_dir_path, 0777); // all permission to sub dir
48 chmod($parent_dir_path, 0666); // restricting parent directory
60 chmod($parent_dir_path, 0777);
61 chmod($sub_dir_path, 0777);
62 chmod($child_dir_path, 0777);
H A Ddir_variation7.phpt28 chmod($parent_dir_path, 0777);
33 chmod($sub_dir_path, 0777);
40 chmod($sub_dir_path, 0444);
46 chmod($sub_dir_path, 0777); // all permission to sub dir
47 chmod($parent_dir_path, 0666); // restricting parent directory
62 chmod($parent_dir_path, 0777);
63 chmod($sub_dir_path, 0777);
64 chmod($child_dir_path, 0777);
H A Dopendir_variation5.phpt28 chmod($parent_dir_path, 0777);
33 chmod($sub_dir_path, 0777);
40 chmod($sub_dir_path, 0444);
47 chmod($sub_dir_path, 0777); // all permission to sub dir
48 chmod($parent_dir_path, 0666); // restricting parent directory
68 chmod($parent_dir_path, 0777);
69 chmod($sub_dir_path, 0777);
70 chmod($child_dir_path, 0777);
/PHP-8.1/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
29 $phar['a.php']->chmod(0777);
31 $phar['a.php']->chmod(0666);
35 $phar['test']->chmod(0000);
37 $phar['test']->chmod(0666);
/PHP-8.1/ext/phar/tests/
H A Dpharfileinfo_chmod.phpt2 Phar: PharFileInfo::chmod extra code coverage
18 $phar['a']->chmod(066);
23 $b->chmod(0666);
28 Phar entry "a" is a temporary directory (not an actual entry in the archive), cannot 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
26 $a['a.php']->chmod(0777);
28 $a['a.php']->chmod(0666);
H A Dphar_oo_iswriteable.phpt32 $a['a.php']->chmod(000);
35 $a['a.php']->chmod(0666);
59 chmod($fname2, 000);
63 chmod($fname2, 0666);
/PHP-8.1/ext/phar/tests/zip/
H A D033a.phpt2 Phar::chmod zip-based
29 $phar['a.php']->chmod(0777);
31 $phar['a.php']->chmod(0666);
35 $phar['test']->chmod(0777);
37 $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-8.1/ext/standard/tests/mail/
H A Dgh7875.phpt7 chmod($filename, 0444);
10 chmod($filename, 0644);
32 chmod(__DIR__ . "/gh7875.mail.log", 0444);
44 @chmod(__DIR__ . "/gh7875.mail.log", 0644);
/PHP-8.1/ext/phar/tests/cache_list/files/
H A Dwrite18.phar.inc10 $p["test.txt"]->chmod(0444);
16 $phar["test.txt"]->chmod(0666);

Completed in 29 milliseconds

12345