/PHP-5.3/tests/security/ |
H A D | open_basedir_chmod.phpt | 10 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.3/ext/standard/tests/file/ |
H A D | chmod_error.phpt | 2 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 D | chmod_variation2-win32.phpt | 2 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 D | chmod_variation2.phpt | 2 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 D | chmod_variation3.phpt | 2 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 D | 006_error.phpt | 2 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 D | chmod_variation4.phpt | 2 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 D | 006_variation2.phpt | 2 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 D | 006_basic.phpt | 2 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 D | chmod_basic.phpt | 2 chmod() basic fuctionality 20 chmod($filename, $perms_to_set); 27 var_dump(chmod($filename, 0777));
|
H A D | chmod_variation1.phpt | 2 chmod() on a directory 18 chmod($dirname, $perms_to_set); 26 var_dump(chmod($dirname, 0777));
|
H A D | unlink_variation1-win32.phpt | 37 var_dump( chmod($dirname, 0444) ); 43 var_dump( chmod($dirname, 0777) ); 55 var_dump( chmod($filename, 0444) ); 61 chmod($filename, 0777);
|
/PHP-5.3/ext/phar/tests/ |
H A D | pharfileinfo_chmod.phpt | 2 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 D | 033.phpt | 2 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 D | 033a.phpt | 2 Phar::chmod 20 $a['a.php']->chmod(0777); 22 $a['a.php']->chmod(0666);
|
H A D | phar_oo_iswriteable.phpt | 26 $a['a.php']->chmod(000); 29 $a['a.php']->chmod(0666); 53 chmod($fname2, 000); 57 chmod($fname2, 0666);
|
/PHP-5.3/ext/posix/tests/ |
H A D | posix_access.phpt | 26 chmod ($filename, 0000); 29 chmod ($filename, 0400); 32 chmod ($filename, 0600); 35 chmod ($filename, 0700); 42 chmod ($filename, 0700);
|
/PHP-5.3/ext/phar/tests/zip/ |
H A D | 033a.phpt | 2 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 D | 033.phpt | 2 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.3/ext/phar/tests/tar/ |
H A D | 033.phpt | 2 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 D | 033a.phpt | 2 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.3/ext/standard/tests/dir/ |
H A D | dir_variation7.phpt | 42 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 D | opendir_variation5.phpt | 41 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 D | scandir_variation5.phpt | 42 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.3/ext/phar/tests/cache_list/files/ |
H A D | write18.phar.inc | 10 $p["test.txt"]->chmod(0444); 16 $phar["test.txt"]->chmod(0666);
|