/PHP-5.5/ext/standard/tests/file/ |
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 | 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 | 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) );
|
H A D | fileinode_variation.phpt | 71 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 D | lstat_stat_variation9.phpt | 21 /* 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 D | 005_error.phpt | 27 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 D | fopen_variation7.phpt | 15 $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 D | fopen_variation9.phpt | 15 $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 D | is_dir_variation4.phpt | 10 /* 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 ***
|
/PHP-5.5/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));
|
/PHP-5.5/ext/standard/tests/dir/ |
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
|
H A D | scandir_error1.phpt | 5 /* 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) );
|
/PHP-5.5/main/ |
H A D | php_open_temporary_file.c | 275 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bo… in php_open_temporary_fd_ex() argument 287 if (!dir || *dir == '\0') { in php_open_temporary_fd_ex() 299 fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC); in php_open_temporary_fd_ex() 307 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) in php_open_temporary_fd() argument 309 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0 TSRMLS_CC); in php_open_temporary_fd() 312 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_… in php_open_temporary_file() argument 315 int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC); in php_open_temporary_file()
|
/PHP-5.5/win32/ |
H A D | readdir.c | 22 DIR *opendir(const char *dir) in opendir() argument 31 if (!VCWD_REALPATH(dir, resolved_path_buff)) { in opendir() 64 dp->dir = strdup(resolved_path_buff); in opendir() 129 if (dp->dir) in closedir() 130 free(dp->dir); in closedir() 149 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1); in rewinddir() 154 strcpy(filespec, dp->dir); in rewinddir()
|
/PHP-5.5/ext/spl/tests/ |
H A D | bug54291.phpt | 2 Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0) 5 $dir = new DirectoryIterator("\x00/abc"); 6 $dir->isFile();
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | dir.phpt | 24 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-5.5/ext/phar/tests/zip/ |
H A D | dir.phpt | 23 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-5.5/ |
H A D | Makefile.gcov | 21 dir=lcov_data/`dirname $$x`; \ 22 test -d "$$dir" || $(mkinstalldirs) "$$dir"; \ 60 …for dir in ext/bcmath/libbcmath ext/fileinfo/libmagic ext/gd/libgd ext/mbstring/libmbfl ext/mbstri… 61 if test -d lcov_data/$$dir; then \ 62 rm -rf lcov_data/$$dir ; \
|
/PHP-5.5/ext/phar/tests/ |
H A D | phar_extract3.phpt | 37 $dir = dirname(__FILE__) . '/test/'; 38 @unlink($dir . 'stuff.txt'); 39 @unlink($dir . 'nonsense.txt'); 40 @rmdir($dir);
|
H A D | fopen.phpt | 19 $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-5.5/ext/gd/tests/ |
H A D | createfromstring.phpt | 10 $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-5.5/ext/zlib/tests/ |
H A D | gzopen_variation5.phpt | 20 $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-5.5/ext/intl/tests/ |
H A D | resourcebundle.build | 9 $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-5.5/ext/zip/tests/ |
H A D | oo_rename.phpt | 23 $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-5.5/tests/security/ |
H A D | open_basedir_opendir.phpt | 32 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
|