Home
last modified time | relevance | path

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

12345678910>>...22

/php-src/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-src/ext/zip/tests/
H A Doo_addpattern.phpt25 $dir = realpath($dirname);
26 $options = array('add_path' => 'baz/', 'remove_path' => $dir);
27 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
31 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
35 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
H A Doo_rename.phpt20 $zip->addFromString('dir/entry2.txt', 'entry #2');
36 "dir/entry2.txt"
47 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
48 echo "failed name dir/entry2.txt\n";
/php-src/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-src/ext/standard/tests/file/
H A Dlstat_stat_variation8.phpt15 /* test the effects on stats with creating file/subdir in a dir
19 mkdir("$file_path/lstat_stat_variation8/"); // temp dir
21 // creating and deleting subdir and files in the dir
22 echo "*** Testing stat() on dir after subdir and file is created in it ***\n";
50 *** Testing stat() on dir after subdir and file is created in it ***
H A Dcopy_variation12-win32.phpt2 Test copy() function: usage variations - dir as source
10 /* Test copy(): Trying to create a copy of an existing dir */
14 echo "*** Test copy() function: Trying to create a copy of an existing dir ***\n";
33 *** Test copy() function: Trying to create a copy of an existing dir ***
H A Dfilesize_error.phpt7 /* Non-existing file or dir */
9 var_dump( filesize("/no/such/dir") );
18 Warning: filesize(): stat failed for /no/such/dir in %s on line %d
H A Dfile_put_contents_variation7.phpt9 $mainDir = "filePutContentsVar7.dir";
46 $dir = $allDirs[$i];
48 $res = file_put_contents($dir."/".$filename, ($data . $i));
57 unlink($dir."/".$filename);
71 $mainDir = "filePutContentsVar7.dir";
98 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/..///filePutContentsVar…
103 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/BADDIR/FileGetContentsV…
H A Dstat_variation3-win32.phpt2 Test stat() functions: usage variations - effects of creating/deleting the dir/file
12 /* test the effects of creating & deleting of subdir/file on the stats of dir/file */
19 mkdir("$file_path/stat_variation3/"); // temp dir
23 // creating and deleting subdir and files in the dir
24 echo "-- Testing stat() on dir after subdir and file is created in it --\n";
64 -- Testing stat() on dir after subdir and file is created in it --
H A Dcopy_variation12.phpt2 Test copy() function: usage variations - dir as source (Bug #42111)
10 /* Test copy(): Trying to create a copy of an existing dir */
14 echo "*** Test copy() function: Trying to create a copy of an existing dir ***\n";
34 *** Test copy() function: Trying to create a copy of an existing dir ***
H A Dfiletype_error.phpt6 /* non-existing file or dir */
7 print( filetype("/no/such/file/dir") );
17 Warning: filetype(): Lstat failed for /no/such/file/dir in %s on line %d
/php-src/ext/standard/tests/dir/
H A Ddir_variation3.phpt2 Test dir() function : usage variations - different directory permissions
14 * to see if dir() function opens the directory successfully.
17 echo "*** Testing dir() : different directory permissions ***";
46 // try to remove the dir if exists & create
49 @chmod ($dir_path, 0777); // change dir permission to allow all operation
50 @rmdir ($dir_path); // try n delete the dir
52 // create the dir now
55 // change the dir permission to test dir on it
58 // try to get dir handle
59 $d = dir($dir_path);
[all …]
H A Ddir_basic-win32-mb.phpt2 Test dir() function : basic functionality
11 echo "*** Testing dir() : basic functionality ***\n";
25 $d = dir($dir_path);
41 echo "\nTest read after closing the dir:\n";
60 *** Testing dir() : basic functionality ***
87 Test read after closing the dir:
H A Dscandir_variation5.phpt13 * remove the execute permission from the parent dir and test scandir() on child dir
24 * |-> child_dir ( child dir)
46 // remove the execute permission from parent dir, allowing all permission for sub dir
47 chmod($sub_dir_path, 0777); // all permission to sub dir
/php-src/Zend/tests/
H A Dgh8548_2.phpt26 $dir = opendir('foo://bar');
32 $wrapper = stream_get_meta_data($dir)['wrapper_data'];
37 closedir($dir);
38 unset($dir);
/php-src/ext/spl/
H A Dspl_directory.c115 if (intern->u.dir.dirp) { in spl_filesystem_object_destroy_object()
276 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read()
308 intern->u.dir.index = 0; in spl_filesystem_dir_open()
782 intern->u.dir.index = 0; in PHP_METHOD()
825 intern->u.dir.index++; in PHP_METHOD()
1443 intern->u.dir.index = 0; in PHP_METHOD()
1541 if (intern->u.dir.sub_path && ZSTR_LEN(intern->u.dir.sub_path)) { in PHP_METHOD()
1711 object->u.dir.index++; in spl_filesystem_dir_it_move_forward()
1725 object->u.dir.index = 0; in spl_filesystem_dir_it_rewind()
1793 object->u.dir.index++; in spl_filesystem_tree_it_move_forward()
[all …]
/php-src/ext/openssl/tests/
H A Dbug37820.phpt7 $dir = __DIR__;
8 $file_pub = $dir . '/bug37820cert.pem';
9 $file_key = $dir . '/bug37820key.pem';
/php-src/ext/standard/
H A Dphp_dir.h21 PHP_MINIT_FUNCTION(dir);
22 PHP_RINIT_FUNCTION(dir);
/php-src/ext/gd/tests/
H A Dcreatefromstring.phpt11 $dir = __DIR__;
16 imagepng($im, $dir . '/tc.png');
27 unlink($dir . '/tc.png');
36 imagepng($im, $dir . '/p.png');
51 unlink($dir . '/p.png');
/php-src/ext/fileinfo/libmagic/
H A Dreadcdf.c365 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info()
396 for (j = 0; str == NULL && j < dir->dir_len; j++) { in cdf_check_summary_info()
397 d = &dir->dir_tab[j]; in cdf_check_summary_info()
418 dir, scn); in cdf_check_summary_info()
539 cdf_dir_t dir; in file_trycdf() local
572 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) { in file_trycdf()
583 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); in file_trycdf()
630 &sst, &dir, &scn)) == -1) { in file_trycdf()
636 &sst, &dir, &scn, root_storage, &expn); in file_trycdf()
640 i = cdf_file_dir_info(ms, &dir); in file_trycdf()
[all …]
/php-src/ext/gettext/tests/
H A Dbug53251.phpt2 Bug #53251 (bindtextdomain with null dir doesn't return old value)
12 $dir = bindtextdomain('foo', '.');
13 var_dump(bindtextdomain('foo', null) === $dir);
/php-src/ext/intl/tests/
H A Dresourcebundle.build10 $dir = new GlobIterator("$here/_files/*.txt", FilesystemIterator::KEY_AS_FILENAME);
12 foreach($dir as $file) {
16 $dir = new GlobIterator("$here/_files/resourcebundle/*.res", FilesystemIterator::KEY_AS_FILENAME);
17 foreach($dir as $file) {
/php-src/ext/standard/tests/image/
H A Dgetimagesize_246x247.phpt10 $dir = opendir(__DIR__) or die('cannot open directory: '.__DIR__);
13 while (($file = readdir($dir)) !== FALSE) {
18 closedir($dir);
H A Dgetimagesize_384x385.phpt10 $dir = opendir(__DIR__) or die('cannot open directory: '.__DIR__);
13 while (($file = readdir($dir)) !== FALSE) {
18 closedir($dir);
/php-src/ext/zlib/tests/
H A Dreadgzfile_variation15.phpt49 gzwrite($h, "This is a file in working dir");
60 //should read the file in working dir
67 gzwrite($h, "This is a file in script dir");
70 //should read the file in script dir
86 file content:This is a file in working dir
87 file content:This is a file in script dir

Completed in 39 milliseconds

12345678910>>...22