Home
last modified time | relevance | path

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

12345678910>>...24

/PHP-7.2/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.2/ext/phar/tests/tar/
H A Ddir.phpt24 mkdir($pname . '/another/dir/');
25 var_dump($phar['another/dir']->isDir());
26 rmdir($pname . '/another/dir/');
29 var_dump(file_exists($pname . '/another/dir/'));
31 var_dump(file_exists($pname3 . '/another/dir/'));
/PHP-7.2/ext/phar/tests/zip/
H A Ddir.phpt23 mkdir($pname . '/another/dir/');
24 var_dump($phar['another/dir']->isDir());
25 rmdir($pname . '/another/dir/');
28 var_dump(file_exists($pname . '/another/dir/'));
30 var_dump(file_exists($pname3 . '/another/dir/'));
/PHP-7.2/ext/fileinfo/libmagic/
H A Dreadcdf.c368 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info()
399 for (j = 0; str == NULL && j < dir->dir_len; j++) { in cdf_check_summary_info()
400 d = &dir->dir_tab[j]; in cdf_check_summary_info()
421 dir, scn); in cdf_check_summary_info()
511 if (cdf_find_stream(dir, si->sections[j], si->types[j]) in cdf_file_dir_info()
540 cdf_dir_t dir; in file_trycdf() local
584 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); in file_trycdf()
631 &sst, &dir, &scn)) == -1) { in file_trycdf()
637 &sst, &dir, &scn, root_storage, &expn); in file_trycdf()
641 i = cdf_file_dir_info(ms, &dir); in file_trycdf()
[all …]
/PHP-7.2/ext/spl/tests/
H A Dbug54291.phpt2 Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
5 $dir = new DirectoryIterator("\x00/abc");
6 $dir->isFile();
/PHP-7.2/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_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 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
/PHP-7.2/ext/standard/tests/
H A Dbug73124.phpt12 $inifile = $tempDir.DIRECTORY_SEPARATOR.'scan-dir.ini';
23 .*[\/\\]scan-dir\.ini.*|.*[\/\\]scan-dir\.ini
/PHP-7.2/
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.2/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 D027.phpt27 $dir = opendir($phar . $base);
32 while (false !== ($entry = readdir($dir))) {
47 echo "fseek on dir handle\n";
51 echo "fwrite on dir handle\n";
77 fseek on dir handle
84 fwrite on dir handle
89 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
93 Warning: opendir(phar://foo.phar/hi): failed to open dir: phar error: invalid url or non-existent p…
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.2/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
/PHP-7.2/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.2/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.2/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.2/main/
H A Dphp_open_temporary_file.c287 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
299 if (!dir || *dir == '\0') { in php_open_temporary_fd_ex()
311 fd = php_do_open_temporary_file(dir, pfx, opened_path_p); in php_open_temporary_fd_ex()
322 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_fd() argument
324 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0); in php_open_temporary_fd()
327 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_file() argument
330 int fd = php_open_temporary_fd(dir, pfx, opened_path_p); in php_open_temporary_file()
/PHP-7.2/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.2/ext/openssl/tests/
H A Dbug37820.phpt9 $dir = dirname(__FILE__);
10 $file_pub = $dir . '/bug37820cert.pem';
11 $file_key = $dir . '/bug37820key.pem';

Completed in 29 milliseconds

12345678910>>...24