/php-src/ext/standard/tests/file/ |
H A D | glob_variation6.phpt | 7 $path = __DIR__; 11 var_dump(glob("$path/*.none")); 12 var_dump(glob("$path/?.none")); 13 var_dump(glob("$path/*{hello,world}.none")); 14 var_dump(glob("$path/*/nothere")); 15 var_dump(glob("$path/[aoeu]*.none")); 16 var_dump(glob("$path/directly_not_exists"));
|
H A D | touch_variation6-win32.phpt | 69 foreach($paths as $path) { 72 if (is_dir($path) || is_file($path)) { 76 $res = touch($path); 112 foreach($paths as $path) { 116 test_path($path); 117 rmdir($path); 125 unlink($path); 132 function test_path($path) { 136 $res = touch($path,0,0); 146 function get_atime($path) { [all …]
|
H A D | 006_basic.phpt | 12 $path = __DIR__; 15 fopen($path."/perm.tmp", "w"); 16 var_dump( chmod($path."/perm.tmp", 0755 ) ); 17 printf("%o", fileperms($path."/perm.tmp") ); 21 mkdir($path."/perm"); 22 var_dump( chmod( $path."/perm", 0777 ) ); 23 printf("%o", fileperms($path."/perm") );
|
/php-src/ext/standard/tests/dir/ |
H A D | opendir_variation4-win32-mb.phpt | 30 echo "\n-- \$path = './私はガラスを食べられますlevel_one': --\n"; 40 echo "\n-- \$path = '..': --\n"; 44 echo "\n-- \$path = 'level_two', '.': --\n"; 49 echo "\n-- \$path = '../': --\n"; 53 echo "\n-- \$path = './': --\n"; 84 -- $path = './私はガラスを食べられますlevel_one': -- 92 -- $path = '..': -- 95 -- $path = 'level_two', '.': -- 99 -- $path = '../': -- 102 -- $path = './': -- [all …]
|
H A D | scandir_variation4.phpt | 26 echo "\n-- \$path = './level_one': --\n"; 34 echo "\n-- \$path = '..': --\n"; 42 echo "\n-- \$path = '../': --\n"; 46 echo "\n-- \$path = './': --\n"; 67 -- $path = './level_one': -- 82 -- $path = 'level_one/level_two': -- 95 -- $path = '..': -- 110 -- $path = 'level_two', '.': -- 123 -- $path = '../': -- 138 -- $path = './': -- [all …]
|
H A D | scandir_variation4-win32-mb.phpt | 32 echo "\n-- \$path = './私はガラスを食べられますlevel_one': --\n"; 40 echo "\n-- \$path = '..': --\n"; 48 echo "\n-- \$path = '../': --\n"; 52 echo "\n-- \$path = './': --\n"; 73 -- $path = './私はガラスを食べられますlevel_one': -- 88 -- $path = 'level_one/私はガラスを食べられますlevel_two': -- 101 -- $path = '..': -- 116 -- $path = '私はガラスを食べられますlevel_two', '.': -- 129 -- $path = '../': -- 144 -- $path = './': -- [all …]
|
H A D | opendir_variation3.phpt | 6 * Call opendir() twice with the same directory as $path argument 11 $path = __DIR__ . "/opendir_variation3"; 12 mkdir($path); 15 var_dump($dh1 = opendir($path)); 18 var_dump($dh2 = opendir($path)); 31 $path = __DIR__ . "/opendir_variation3"; 32 rmdir($path);
|
H A D | opendir_error2.phpt | 12 * Pass a non-existent directory as $path argument to opendir() to test behaviour 17 echo "\n-- Pass a non-existent absolute path: --\n"; 18 $path = __DIR__ . "/idonotexist"; 19 var_dump(opendir($path)); 21 echo "\n-- Pass a non-existent relative path: --\n"; 28 -- Pass a non-existent absolute path: -- 33 -- Pass a non-existent relative path: --
|
/php-src/ext/phar/tests/zip/files/ |
H A D | zipmaker.php.inc | 15 protected $path; 16 function __construct($path) 22 $this->path = $path; 27 * @param string relative path within the package 30 function addFile($path, $fileOrStream) 33 $this->zip->addFromString($path, stream_get_contents($fileOrStream)); 35 $this->zip->addFromString($path, $fileOrStream); 45 if (true !== $this->zip->open($this->path, ZIPARCHIVE::CREATE)) { 47 'Cannot open ZIP archive ' . $this->path
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_class_016.phpt | 16 public $path; 18 public function open($path, $name): bool { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return (string)@file_get_contents($this->path . $id); 35 return (bool)file_put_contents($this->path . $id, $data); 39 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_017.phpt | 16 public $path; 18 public function open($path, $name): bool { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return (string)@file_get_contents($this->path . $id); 35 return (bool)file_put_contents($this->path . $id, $data); 39 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_iface_003.phpt | 13 public $path; 15 public function open($path, $name): bool { 16 if (!$path) { 17 $path = sys_get_temp_dir(); 19 $this->path = $path . '/u_sess_' . $name; 28 return (string)@file_get_contents($this->path . $id); 33 return (bool)file_put_contents($this->path . $id, $data); 37 @unlink($this->path . $id); 41 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_sid_002.phpt | 15 public $path; 17 public function open($path, $name): bool { 18 if (!$path) { 19 $path = sys_get_temp_dir(); 21 $this->path = $path . '/u_sess_' . $name; 30 return @file_get_contents($this->path . $id); 34 return file_put_contents($this->path . $id, $data); 38 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_018.phpt | 16 public $path; 18 public function open($path, $name): bool { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return (string)@file_get_contents($this->path . $id); 35 return file_put_contents($this->path . $id, $data)===FALSE ? FALSE : TRUE ; 39 @unlink($this->path . $id); 43 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_sid_001.phpt | 13 public $path; 15 public function open($path, $name): bool { 16 if (!$path) { 17 $path = sys_get_temp_dir(); 19 $this->path = $path . '/u_sess_' . $name; 28 return (string)@file_get_contents($this->path . $id); 33 return (bool)file_put_contents($this->path . $id, $data); 37 @unlink($this->path . $id); 41 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_iface_001.phpt | 13 public $path; 15 public function open($path, $name): bool{ 16 if (!$path) { 17 $path = sys_get_temp_dir(); 19 $this->path = $path . '/u_sess_' . $name; 28 return (string)@file_get_contents($this->path . $id); 32 return (bool)file_put_contents($this->path . $id, $data); 36 @unlink($this->path . $id); 40 foreach (glob($this->path . '*') as $filename) {
|
H A D | session_set_save_handler_class_002.phpt | 16 public $path; 18 public function open($path, $name): bool { 19 if (!$path) { 20 $path = sys_get_temp_dir(); 22 $this->path = $path . '/u_sess_' . $name; 31 return (string)@file_get_contents($this->path . $id); 35 return (bool)file_put_contents($this->path . $id, $data); 39 @unlink($this->path . $id); 44 foreach (glob($this->path . '*') as $filename) {
|
/php-src/ext/standard/tests/strings/ |
H A D | url_t.phpt | 89 ["path"]=> 94 ["path"]=> 110 ["path"]=> 115 ["path"]=> 124 ["path"]=> 129 ["path"]=> 134 ["path"]=> 150 ["path"]=> 155 ["path"]=> 160 ["path"]=> [all …]
|
/php-src/ext/spl/tests/ |
H A D | SplFileinfo_debugInfo_basic.phpt | 6 var_dump(new \SplFileInfo('/path/to/a.txt')); 7 var_dump(new \SplFileInfo('path/to/b')); 10 var_dump(new \SplFileInfo('~/path/to//e')); 13 var_dump(new \SplFileInfo('path/to/a.txt')); 14 var_dump(new \SplFileInfo('path/to/bbb.txt')); 23 string(14) "/path/to/a.txt" 29 string(9) "path/to/b" 47 string(12) "~/path/to//e" 53 string(13) "path/to/a.txt" 59 string(15) "path/to/bbb.txt" [all …]
|
/php-src/ext/phar/tests/tar/files/ |
H A D | tarmaker.php.inc | 17 protected $path; 19 function __construct($path, $compress = 'zlib') 30 $this->path = $path; 38 * @param string relative path within the package 41 function addFile($path, $fileOrStream, $stat = null) 71 if (strlen($path) > 255) { 75 } else if (strlen($path) > 100) { 76 $filePrefix = substr($path, 0, strlen($path)-100); 77 $path = substr($path, -100); 81 $path, [all …]
|
H A D | corrupt_tarmaker.php.inc | 17 protected $path; 19 function __construct($path, $compress = 'zlib') 30 $this->path = $path; 38 * @param string relative path within the package 78 if (strlen($path) > 255) { 82 } else if (strlen($path) > 100) { 83 $filePrefix = substr($path, 0, strlen($path)-100); 84 $path = substr($path, -100); 88 $path, 142 $this->tmp = bzopen($this->path, 'w'); [all …]
|
H A D | make.dangerous.tar.php.inc | 18 protected $path; 20 function __construct($path, $compress = 'zlib') 31 $this->path = $path; 39 * @param string relative path within the package 42 function addFile($path, $fileOrStream, $stat = null) 72 if (strlen($path) > 255) { 76 } else if (strlen($path) > 100) { 77 $filePrefix = substr($path, 0, strlen($path)-100); 78 $path = substr($path, -100); 82 $path, [all …]
|
/php-src/win32/ |
H A D | registry.c | 180 void UpdateIniFromRegistry(char *path) in UpdateIniFromRegistry() argument 185 if(!path) { in UpdateIniFromRegistry() 216 orig_path = path = estrdup(path); in UpdateIniFromRegistry() 219 p = strchr(path, ':'); in UpdateIniFromRegistry() 224 if (path[0] != '\\' && path[0] != '/') { in UpdateIniFromRegistry() 246 orig_path = path; in UpdateIniFromRegistry() 251 while (path[path_len] != 0) { in UpdateIniFromRegistry() 252 if (path[path_len] == '\\') { in UpdateIniFromRegistry() 253 path[path_len] = '/'; in UpdateIniFromRegistry() 257 zend_str_tolower(path, path_len); in UpdateIniFromRegistry() [all …]
|
/php-src/ext/filter/tests/ |
H A D | bug51192.phpt | 7 var_dump(filter_var('http://example.com/path', FILTER_VALIDATE_URL)); 8 var_dump(filter_var('http://exa-mple.com/path', FILTER_VALIDATE_URL)); 9 var_dump(filter_var('http://exa_mple.com/path', FILTER_VALIDATE_URL)); 12 string(23) "http://example.com/path" 13 string(24) "http://exa-mple.com/path"
|
/php-src/ext/opcache/tests/ |
H A D | blacklist.phpt | 18 * So, we should write `%S/tmp/path` as `/tmp/path`, except for Windows. 35 [0] => /path/to/foo 36 [1] => /path/to/foo2 37 [2] => /path/to/bar 40 [5] => %S/tmp/path/?nocache.inc 41 [6] => %S/tmp/path/*/somedir
|