/PHP-7.3/ext/openssl/tests/ |
H A D | bug76296.phpt | 7 $dir = __DIR__ . '/bug76296_openbasedir'; 9 if (!is_dir($dir)) { 10 mkdir($dir); 13 ini_set('open_basedir', $dir);
|
/PHP-7.3/ext/standard/tests/dir/ |
H A D | dir_variation4.phpt | 2 Test dir() function : usage variations - operate on previously opened directory 6 * Prototype : object dir(string $directory[, resource $context]) 8 * Source code: ext/standard/dir.c 12 * Testing the behavior of dir() function by trying to open a 16 echo "*** Testing dir() : operate on previously opened directory ***\n"; 30 $d = dir($dir_path); 34 $e = dir($dir_path); 55 *** Testing dir() : operate on previously opened directory ***
|
H A D | dir_bug73971.phpt | 19 echo "\ntest dir()\n"; 20 $d = dir($base); 27 $dir = new DirectoryIterator($base); 28 foreach ($dir as $finfo) { 45 test dir()
|
H A D | scandir_variation5.phpt | 20 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]]) 22 * Source code: ext/standard/dir.c 26 * remove the execute permission from the parent dir and test scandir() on child dir 37 * |-> child_dir ( child dir) 59 // remove the execute permisson from parent dir, allowing all permission for sub dir 60 chmod($sub_dir_path, 0777); // all permisson to sub dir 87 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d 94 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
|
H A D | dir_basic.phpt | 2 Test dir() function : basic functionality 6 * Prototype : object dir(string $directory[, resource $context]) 8 * Source code: ext/standard/dir.c 11 echo "*** Testing dir() : basic functionality ***\n"; 25 $d = dir($dir_path); 41 echo "\nTest read after closing the dir:"; 56 *** Testing dir() : basic functionality *** 83 Test read after closing the dir:
|
H A D | dir_variation4-win32-mb.phpt | 2 Test dir() function : usage variations - operate on previously opened directory 12 * Prototype : object dir(string $directory[, resource $context]) 14 * Source code: ext/standard/dir.c 18 * Testing the behavior of dir() function by trying to open a 22 echo "*** Testing dir() : operate on previously opened directory ***\n"; 36 $d = dir($dir_path); 40 $e = dir($dir_path); 61 *** Testing dir() : operate on previously opened directory ***
|
H A D | dir_basic-win32-mb.phpt | 2 Test dir() function : basic functionality 12 * Prototype : object dir(string $directory[, resource $context]) 14 * Source code: ext/standard/dir.c 17 echo "*** Testing dir() : basic functionality ***\n"; 31 $d = dir($dir_path); 47 echo "\nTest read after closing the dir:"; 62 *** Testing dir() : basic functionality *** 89 Test read after closing the dir:
|
H A D | opendir_variation1.phpt | 13 * Source code: ext/standard/dir.c 124 Warning: opendir(0): failed to open dir: %s in %s on line %d 129 Warning: opendir(1): failed to open dir: %s in %s on line %d 134 Warning: opendir(12345): failed to open dir: %s in %s on line %d 139 Warning: opendir(-2345): failed to open dir: %s in %s on line %d 144 Warning: opendir(10.5): failed to open dir: %s in %s on line %d 149 Warning: opendir(-10.5): failed to open dir: %s in %s on line %d 164 Warning: opendir(0.5): failed to open dir: %s in %s on line %d 175 Warning: opendir(1): failed to open dir: %s in %s on line %d 183 Warning: opendir(1): failed to open dir: %s in %s on line %d [all …]
|
H A D | dir_variation3.phpt | 2 Test dir() function : usage variations - different directory permissions 23 * Source code: ext/standard/dir.c 28 * to see if dir() function opens the directory successfully. 31 echo "*** Testing dir() : different directory permissions ***"; 60 // try to remove the dir if exists & create 64 @rmdir ($dir_path); // try n delete the dir 66 // create the dir now 69 // change the dir permisson to test dir on it 72 // try to get dir handle 73 $d = dir($dir_path); [all …]
|
H A D | opendir_variation5.phpt | 22 * Source code: ext/standard/dir.c 26 * remove the execute permission from the parent dir and test opendir() on child dir 36 * |-> child_dir ( child dir) 59 // remove the execute permisson from parent dir, allowing all permission for sub dir 60 chmod($sub_dir_path, 0777); // all permisson to sub dir 95 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d 100 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
|
H A D | scandir_variation6.phpt | 11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]]) 13 * Source code: ext/standard/dir.c 17 * Pass a directory path using wildcards as $dir argument to test how scandir() behaves 55 Warning: scandir(%s/scandir_var*): failed to open dir: %s in %s on line %d 60 Warning: scandir(%s/*): failed to open dir: %s in %s on line %d 67 Warning: scandir(%s/scandir_variation6/sub_dir?): failed to open dir: %s in %s on line %d 72 Warning: scandir(%s/scandir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
|
/PHP-7.3/ext/spl/examples/ |
H A D | autoload.inc | 13 * Tries to load class $classname from directory $dir. 15 function __load_class($classname, $dir) 17 $file = $dir . '/' . $classname . '.inc'; 39 foreach($inc as $dir) 41 if (__load_class($classname, $dir))
|
/PHP-7.3/ext/standard/tests/file/windows_mb_path/ |
H A D | test_long_path_bug30730.phpt | 14 $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test_bug30730"; 15 $file = $dir . DIRECTORY_SEPARATOR . "test_file"; 17 var_dump(mkdir($dir)); 26 $dest_dir =str_pad($dir, 200, '0'); 29 var_dump(rename($dir, $dest_dir));
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | fopen_variation12.phpt | 27 echo "Not created in working dir\n"; 30 echo "created in working dir\n"; 39 echo "Not created in script dir\n"; 42 echo "created in script dir\n"; 50 created in working dir 51 Not created in script dir
|
H A D | is_dir_variation2.phpt | 15 /* Testing is_dir() with dir, soft & hard link to dir, 20 echo "*** Testing is_dir() with dir and links to dir ***\n"; 21 echo "-- With dir --\n"; 33 …ir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir 79 *** Testing is_dir() with dir and links to dir *** 80 -- With dir --
|
H A D | fopen_variation5.phpt | 16 $thisTestDir = basename(__FILE__, ".php") . ".dir"; 89 fwrite($h, "in working dir"); 101 //should read the file in working dir 109 fwrite($h, "in script dir"); 112 //should read the file in script dir 133 in working dir 134 in script dir 140 in working dir 141 in script dir 147 in working dir [all …]
|
H A D | fopen_variation8.phpt | 15 $thisTestDir = basename(__FILE__, ".php") . ".dir"; 88 fwrite($h, "in working dir"); 100 //should read the working dir file 108 fwrite($h, "in script dir"); 111 //should read the file in script dir 132 in working dir 133 in script dir 139 in working dir 140 in script dir 146 in working dir [all …]
|
H A D | is_dir_variation1.phpt | 2 Test is_dir() function: usage variations - dir/subdir 14 echo "-- Testing is_dir() with an empty dir --\n"; 20 echo "-- Testing is_dir() with a subdir in base dir --\n"; 36 -- Testing is_dir() with an empty dir -- 38 -- Testing is_dir() with a subdir in base dir --
|
H A D | flock_basic.phpt | 11 echo "*** Testing flock() fun with file and dir ***\n"; 22 mkdir("$file_path/dir"); 23 $dir_handle = opendir("$file_path/dir"); 29 rmdir("$file_path/dir"); 34 *** Testing flock() fun with file and dir ***
|
H A D | symlink_link_linkinfo_is_link_variation7.phpt | 28 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7"; 29 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp"; 31 $linkname = "$dir/symlink_link_linkinfo_is_link_link_variation7.tmp"; 33 $dirname = "$dir/home/test"; 69 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7"; 70 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp"; 72 rmdir("$dir/home/test"); 73 rmdir("$dir/home"); 74 rmdir($dir);
|
H A D | disk_total_space_basic.phpt | 18 $dir = "/disk_total_space"; 20 mkdir($file_path.$dir); 21 var_dump( disk_total_space($file_path.$dir) ); 22 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w"); 28 var_dump( disk_total_space($file_path.$dir) );
|
/PHP-7.3/ext/spl/tests/ |
H A D | DirectoryIterator_getBasename_pass_array.phpt | 10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR); 11 while(!$dir->isFile()) { 12 $dir->next(); 14 echo $dir->getBasename(array());
|
/PHP-7.3/main/ |
H A D | php_open_temporary_file.h | 26 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p); 27 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, … 28 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p);
|
/PHP-7.3/ext/phar/tests/ |
H A D | opendir.phpt | 13 $a = opendir("dir"); 20 $a['dir/file1.txt'] = 'hi'; 21 $a['dir/file2.txt'] = 'hi2'; 22 $a['dir/file3.txt'] = 'hi3'; 39 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at … 42 Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar …
|
/PHP-7.3/ext/standard/tests/streams/ |
H A D | bug49936.phpt | 11 $dir = 'ftp://your:self@localhost/'; 13 var_dump(@opendir($dir)); 14 var_dump(@opendir($dir));
|