/PHP-8.2/ext/zip/tests/ |
H A D | oo_addpattern.phpt | 25 $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 D | oo_rename.phpt | 20 $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-8.2/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-8.2/Zend/tests/ |
H A D | gh8548_2.phpt | 26 $dir = opendir('foo://bar'); 32 $wrapper = stream_get_meta_data($dir)['wrapper_data']; 37 closedir($dir); 38 unset($dir);
|
/PHP-8.2/ext/standard/tests/dir/ |
H A D | dir_variation3.phpt | 2 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 D | dir_basic-win32-mb.phpt | 2 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 D | scandir_variation5.phpt | 13 * 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-8.2/ext/openssl/tests/ |
H A D | bug37820.phpt | 7 $dir = __DIR__; 8 $file_pub = $dir . '/bug37820cert.pem'; 9 $file_key = $dir . '/bug37820key.pem';
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | copy_variation12-win32.phpt | 2 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 D | filesize_error.phpt | 7 /* 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 D | stat_variation3-win32.phpt | 2 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 D | filetype_error.phpt | 6 /* 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
|
H A D | copy_variation12.phpt | 2 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 D | lstat_stat_variation17.phpt | 2 Test lstat() and stat() functions: usage variations - effects changing permissions of dir 12 /* test the effects on stats by changing permissions of a dir */ 18 echo "*** Testing lstat() on a dir after changing its access permission ***\n"; 43 *** Testing lstat() on a dir after changing its access permission ***
|
/PHP-8.2/ext/standard/ |
H A D | php_dir.h | 21 PHP_MINIT_FUNCTION(dir); 22 PHP_RINIT_FUNCTION(dir);
|
/PHP-8.2/ext/spl/ |
H A D | spl_directory.c | 115 if (intern->u.dir.dirp) { in spl_filesystem_object_destroy_object() 286 if (!intern->u.dir.dirp || !php_stream_readdir(intern->u.dir.dirp, &intern->u.dir.entry)) { in spl_filesystem_dir_read() 318 intern->u.dir.index = 0; in spl_filesystem_dir_open() 794 intern->u.dir.index = 0; in PHP_METHOD() 837 intern->u.dir.index++; in PHP_METHOD() 1455 intern->u.dir.index = 0; in PHP_METHOD() 1548 if (intern->u.dir.sub_path && ZSTR_LEN(intern->u.dir.sub_path)) { in PHP_METHOD() 1718 object->u.dir.index++; in spl_filesystem_dir_it_move_forward() 1732 object->u.dir.index = 0; in spl_filesystem_dir_it_rewind() 1800 object->u.dir.index++; in spl_filesystem_tree_it_move_forward() [all …]
|
/PHP-8.2/ext/gd/tests/ |
H A D | createfromstring.phpt | 11 $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-8.2/ext/gettext/tests/ |
H A D | bug53251.phpt | 2 Bug #53251 (bindtextdomain with null dir doesn't return old value) 12 $dir = bindtextdomain('foo', '.'); 13 var_dump(bindtextdomain('foo', null) === $dir);
|
/PHP-8.2/ext/fileinfo/libmagic/ |
H A D | readcdf.c | 367 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info() 398 for (j = 0; str == NULL && j < dir->dir_len; j++) { in cdf_check_summary_info() 399 d = &dir->dir_tab[j]; in cdf_check_summary_info() 420 dir, scn); in cdf_check_summary_info() 541 cdf_dir_t dir; in file_trycdf() local 574 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) { in file_trycdf() 585 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); in file_trycdf() 632 &sst, &dir, &scn)) == -1) { in file_trycdf() 638 &sst, &dir, &scn, root_storage, &expn); in file_trycdf() 642 i = cdf_file_dir_info(ms, &dir); in file_trycdf() [all …]
|
/PHP-8.2/ext/standard/tests/image/ |
H A D | getimagesize_246x247.phpt | 10 $dir = opendir(__DIR__) or die('cannot open directory: '.__DIR__); 13 while (($file = readdir($dir)) !== FALSE) { 18 closedir($dir);
|
H A D | getimagesize_384x385.phpt | 10 $dir = opendir(__DIR__) or die('cannot open directory: '.__DIR__); 13 while (($file = readdir($dir)) !== FALSE) { 18 closedir($dir);
|
/PHP-8.2/ext/intl/tests/ |
H A D | resourcebundle.build | 10 $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-8.2/ext/zlib/tests/ |
H A D | readgzfile_variation15.phpt | 49 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
|
/PHP-8.2/tests/basic/ |
H A D | req60524.phpt | 4 sys_temp_dir=/path/to/temp/dir 8 /path/to/temp/dir
|
/PHP-8.2/ext/pdo/tests/ |
H A D | bug_77849.phpt | 7 $dir = getenv('REDIR_TEST_DIR'); 8 if (false == $dir) die('skip no driver'); 9 require_once $dir . 'pdo_test.inc';
|