Home
last modified time | relevance | path

Searched refs:dir (Results 101 – 125 of 606) sorted by relevance

12345678910>>...25

/PHP-7.1/ext/standard/tests/dir/
H A Dscandir_error1.phpt5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
7 * Source code: ext/standard/dir.c
22 $dir = dirname(__FILE__) . '/scandir_error';
23 mkdir($dir);
27 var_dump( scandir($dir, $sorting_order, $context, $extra_arg) );
H A Dscandir_error1-win32-mb.phpt11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
13 * Source code: ext/standard/dir.c
28 $dir = dirname(__FILE__) . '/私はガラスを食べられますscandir_error';
29 mkdir($dir);
33 var_dump( scandir($dir, $sorting_order, $context, $extra_arg) );
H A Dopendir_variation6.phpt13 * Source code: ext/standard/dir.c
54 Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d
57 Warning: opendir(%s/*): failed to open dir: %s in %s on line %d
62 Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: %s in %s on line %d
65 Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
/PHP-7.1/ext/standard/tests/file/
H A Dfileinode_variation.phpt71 mkdir("$file_path/dir");
72 print( fileinode("$file_path/dir") )."\n";
75 mkdir("$file_path/dir/subdir");
76 print( fileinode("$file_path/dir/subdir") )."\n";
80 print( fileinode(b"$file_path/dir") )."\n";
82 print( fileinode(b"$file_path/dir/subdir") );
84 rmdir("$file_path/dir/subdir");
85 rmdir("$file_path/dir");
H A Dlstat_stat_variation9.phpt21 /* test the effects on stats by deleting file/subdir from a dir
26 /* first create the dir/subdir and files, record the stat */
27 @rmdir("$file_path/lstat_stat_variation9/"); // ensure that dir doesn't exists
28 mkdir("$file_path/lstat_stat_variation9/"); // temp dir
30 // creating and deleting subdir and files in the dir
32 @rmdir("$dirname/lstat_stat_variation9_subdir"); // ensure that dir doesn't exists
H A D005_error.phpt27 var_dump( fileatime("/no/such/file/or/dir") );
28 var_dump( filemtime("/no/such/file/or/dir") );
29 var_dump( filectime("/no/such/file/or/dir") );
30 var_dump( touch("/no/such/file/or/dir", 10) );
46 var_dump( fileatime("/no/such/file/or/dir", "string") );
47 var_dump( filemtime("/no/such/file/or/dir", 100) );
48 var_dump( filectime("/no/such/file/or/dir", TRUE) );
49 var_dump( touch("/no/such/file/or/dir", 10, 100, 123) );
63 Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d
66 Warning: filemtime(): stat failed for /no/such/file/or/dir in %s on line %d
[all …]
H A Dfopen_variation9.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
41 echo "Not created in working dir\n";
44 echo "created in working dir\n";
62 created in working dir
64 created in working dir
H A Dfopen_variation7.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
41 echo "Not created in working dir\n";
44 echo "created in working dir\n";
62 created in working dir
64 created in working dir
H A Dis_dir_variation4.phpt10 /* Passing dir names with different notations, using slashes, wild-card chars */
14 echo "*** Testing is_dir() with different notations of dir names ***";
39 foreach($dirs_arr as $dir) {
41 var_dump( is_dir($file_path."/".$dir ) );
54 *** Testing is_dir() with different notations of dir names ***
H A Dlstat_stat_variation8.phpt22 /* test the effects on stats with creating file/subdir in a dir
26 mkdir("$file_path/lstat_stat_variation8/"); // temp dir
28 // creating and deleting subdir and files in the dir
29 echo "*** Testing stat() on dir after subdir and file is created in it ***\n";
57 *** Testing stat() on dir after subdir and file is created in it ***
/PHP-7.1/ext/standard/tests/
H A Dbug73124.phpt12 $inifile = $tempDir.DIRECTORY_SEPARATOR.'scan-dir.ini';
23 .*[\/\\]scan-dir\.ini.*|.*[\/\\]scan-dir\.ini
/PHP-7.1/
H A DMakefile.gcov20 dir=lcov_data/`dirname $$x`; \
21 test -d "$$dir" || $(mkinstalldirs) "$$dir"; \
59 …for dir in ext/bcmath/libbcmath ext/date/lib ext/fileinfo/libmagic ext/gd/libgd ext/mbstring/libmb…
60 if test -d lcov_data/$$dir; then \
61 rm -rf lcov_data/$$dir ; \
/PHP-7.1/ext/phar/tests/
H A Dphar_extract3.phpt37 $dir = dirname(__FILE__) . '/test-extract3/';
38 @unlink($dir . 'stuff.txt');
39 @unlink($dir . 'nonsense.txt');
40 @rmdir($dir);
H A Dfopen.phpt19 $a = fopen("dir/file1.txt", "r");
27 $a['dir/file1.txt'] = 'hi';
28 $a['dir/file2.txt'] = 'hi2';
29 $a['dir/file3.txt'] = 'hi3';
31 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
H A Dfopen5.2.phpt19 $a = fopen("dir/file1.txt", "r");
27 $a['dir/file1.txt'] = 'hi';
28 $a['dir/file2.txt'] = 'hi2';
29 $a['dir/file3.txt'] = 'hi3';
31 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
/PHP-7.1/ext/zlib/tests/
H A Dgzopen_variation5.phpt20 $thisTestDir = "gzopenVariation5.dir";
45 echo "Not created in working dir\n";
48 echo "created in working dir\n";
67 created in working dir
69 created in working dir
H A Dzlib_scheme_dir_basic.phpt11 $inputFileName = dirname(__FILE__)."/dir.gz";
23 Warning: opendir(compress.zlib://%s/dir.gz): failed to open dir: not implemented in %s on line %d
/PHP-7.1/ext/gd/tests/
H A Dcreatefromstring.phpt10 $dir = dirname(__FILE__);
15 imagepng($im, $dir . '/tc.png');
26 unlink($dir . '/tc.png');
35 imagepng($im, $dir . '/p.png');
50 unlink($dir . '/p.png');
/PHP-7.1/ext/intl/tests/
H A Dresourcebundle.build9 $dir = new GlobIterator("$here/_files/*.txt", FilesystemIterator::KEY_AS_FILENAME);
11 foreach($dir as $file) {
15 $dir = new GlobIterator("$here/_files/resourcebundle/*.res", FilesystemIterator::KEY_AS_FILENAME);
16 foreach($dir as $file) {
/PHP-7.1/ext/zip/tests/
H A Doo_rename.phpt23 $zip->addFromString('dir/entry2.txt', 'entry #2');
43 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
44 echo "failed name dir/entry2.txt\n";
54 2 dir/entry2.txt
/PHP-7.1/main/
H A Dphp_open_temporary_file.c294 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, … in php_open_temporary_fd_ex() argument
306 if (!dir || *dir == '\0') { in php_open_temporary_fd_ex()
318 fd = php_do_open_temporary_file(dir, pfx, opened_path_p); in php_open_temporary_fd_ex()
329 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_fd() argument
331 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0); in php_open_temporary_fd()
334 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_file() argument
337 int fd = php_open_temporary_fd(dir, pfx, opened_path_p); in php_open_temporary_file()
/PHP-7.1/tests/security/
H A Dopen_basedir_opendir.phpt32 Warning: opendir(../bad): failed to open dir: %s in %s on line %d
37 Warning: opendir(../bad/bad.txt): failed to open dir: %s in %s on line %d
42 Warning: opendir(..): failed to open dir: %s in %s on line %d
47 Warning: opendir(../): failed to open dir: %s in %s on line %d
52 Warning: opendir(/): failed to open dir: %s in %s on line %d
57 Warning: opendir(../bad/.): failed to open dir: %s in %s on line %d
62 Warning: opendir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
67 Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
/PHP-7.1/ext/openssl/tests/
H A Dbug37820.phpt9 $dir = dirname(__FILE__);
10 $file_pub = $dir . '/bug37820cert.pem';
11 $file_key = $dir . '/bug37820key.pem';
/PHP-7.1/ext/standard/tests/image/
H A Dgetimagesize_246x247.phpt10 $dir = opendir(dirname(__FILE__)) or die('cannot open directory: '.dirname(__FILE__));
13 while (($file = readdir($dir)) !== FALSE) {
18 closedir($dir);
H A Dgetimagesize_384x385.phpt10 $dir = opendir(dirname(__FILE__)) or die('cannot open directory: '.dirname(__FILE__));
13 while (($file = readdir($dir)) !== FALSE) {
18 closedir($dir);

Completed in 28 milliseconds

12345678910>>...25