Home
last modified time | relevance | path

Searched refs:file_exists (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/PHP-8.0/ext/phar/tests/
H A Drename_dir_and_mount.phpt24 var_dump(file_exists($pname . '/a'));
25 var_dump(file_exists($pname . '/a/x'));
26 var_dump(file_exists($pname . '/a/b'));
28 var_dump(file_exists($pname . '/a/c'));
32 var_dump(file_exists($pname . '/a'));
33 var_dump(file_exists($pname . '/a/x'));
34 var_dump(file_exists($pname . '/a/b'));
36 var_dump(file_exists($pname . '/a/c'));
38 var_dump(file_exists($pname . '/b'));
39 var_dump(file_exists($pname . '/b/x'));
[all …]
H A Dbug66960.phpt12 var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN-1)));
13 var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN)));
14 var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN+1)));
/PHP-8.0/ext/standard/tests/file/
H A Dfile_exists_variation1.phpt2 Test file_exists() function : usage variations
7 echo "*** Testing file_exists() : usage variations ***\n";
9 var_dump(file_exists(NULL));
10 var_dump(file_exists(false));
11 var_dump(file_exists(''));
12 var_dump(file_exists(' '));
13 var_dump(file_exists('|'));
17 *** Testing file_exists() : usage variations ***
H A Drename_variation3-win32.phpt30 var_dump( file_exists($filename) );
34 var_dump( file_exists($dirname) );
38 var_dump( file_exists($filename) );
39 var_dump( file_exists($dirname) );
46 var_dump( file_exists($filename) );
47 var_dump( file_exists($dirname) );
H A Drename_variation8.phpt18 var_dump( file_exists($src_name) ); // expecting false
19 var_dump( file_exists($dest_name) ); // expecting false
28 var_dump( file_exists($dir_name) ); // expecting false
29 var_dump( file_exists($new_dir_name) ); // expecting true
37 var_dump( file_exists($non_existent_dir_name) ); // expecting flase
38 var_dump( file_exists($new_dir_name) ); // expecting false
H A Drename_variation9.phpt17 var_dump( file_exists($dir_name) ); // expecting flase
18 var_dump( file_exists($new_dir_name) ); // expecting true
30 var_dump( file_exists($src_name) ); // expecting false
31 var_dump( file_exists($dest_name) ); // expecting true
H A Drename_variation8-win32.phpt18 var_dump( file_exists($src_name) ); // expecting false
19 var_dump( file_exists($dest_name) ); // expecting false
28 var_dump( file_exists($dir_name) ); // expecting false
29 var_dump( file_exists($new_dir_name) ); // expecting true
37 var_dump( file_exists($non_existent_dir_name) ); // expecting flase
38 var_dump( file_exists($new_dir_name) ); // expecting false
H A Dbug39863.phpt2 Bug #39863 (file_exists() silently truncates after a null byte)
9 var_dump(file_exists($filename));
H A Dis_dir_variation2.phpt54 if(file_exists($file_path."/is_dir_variation2_symlink")) {
57 if(file_exists($file_path."/is_dir_variation2_symlink")) {
60 if(file_exists($file_path."/is_dir_variation2_symlink.tmp")) {
63 if(file_exists($file_path."/is_dir_variation2_link.tmp")) {
66 if(file_exists($file_path."/is_dir_variation2.tmp")) {
69 if(file_exists($file_path."/is_dir_variation2")) {
H A Dcopy_variation9.phpt25 var_dump( file_exists($src_file_name) );
27 var_dump( file_exists($dest_file_name) );
32 var_dump( file_exists($src_file_name) );
34 var_dump( file_exists($dest_file_name) );
H A Drename_variation2-win32.phpt25 var_dump( file_exists($file_path."/rename_variation2.tmp" ) ); // expecting false
26 var_dump( file_exists($file_path."/12345" ) ); // expecting true
34 var_dump( file_exists($file_path."/rename_variation2_dir" ) ); // expecting false
35 var_dump( file_exists($file_path."/12345" ) ); // expecting true
H A Drename_variation3.phpt30 var_dump( file_exists($filename) ); // expecting false
31 var_dump( file_exists($dest_linkname) ); // expecting true
36 var_dump( file_exists($dest_linkname) ); // expecting false
37 var_dump( file_exists($dest_dir."/rename_variation3_hard_link2.tmp") ); // expecting true
H A Drename_variation4.phpt23 var_dump( file_exists($file_path."/rename_variation4.tmp" ) ); // expecting false
24 var_dump( file_exists($file_path."/12345" ) ); // expecting true
33 var_dump( file_exists($file_path."/rename_variation4_dir" ) ); // expecting false
34 var_dump( file_exists($file_path."/12345" ) ); // expecting true
H A Dbug42560.phpt9 var_dump(file_exists($tempnam));
11 if (file_exists($tempnam)) {
H A Dbug24313.phpt2 Bug #24313 (file_exists() throws a warning on nonexistent files when is open_basedir enabled)
13 var_dump(file_exists("/dev/bogus_file_no_such_thing"));
/PHP-8.0/tests/security/
H A Dopen_basedir_file_exists.phpt8 test_open_basedir("file_exists");
16 *** Testing open_basedir configuration [file_exists] ***
23 Warning: file_exists(): open_basedir restriction in effect. File(../bad) is not within the allowed …
26 Warning: file_exists(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the …
29 Warning: file_exists(): open_basedir restriction in effect. File(..) is not within the allowed path…
32 Warning: file_exists(): open_basedir restriction in effect. File(../) is not within the allowed pat…
35 Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(…
38 Warning: file_exists(): open_basedir restriction in effect. File(../bad/.) is not within the allowe…
41 Warning: file_exists(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within…
47 Warning: file_exists(): open_basedir restriction in effect. File(./../.) is not within the allowed …
[all …]
H A Dbug53226.phpt2 Bug #53226 (file_exists fails on big filenames)
10 var_dump(file_exists('./test/ok/ok.txt'));
11 var_dump(file_exists('./test/foo'));
14 var_dump(file_exists("./test/$file"));
28 Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (…
/PHP-8.0/ext/zip/tests/
H A Doo_extract.phpt27 if (!file_exists($dirname . '__oo_extract_tmp/foobar/baz')) {
33 if (!file_exists($dirname . '__oo_extract_tmp/bar')) {
39 if (!file_exists($dirname . '__oo_extract_tmp/foo')) {
48 if (!file_exists($dirname . '__oo_extract_tmp/bar')) {
56 if (!file_exists($dirname . '__oo_extract_tmp/bar')) {
61 if (!file_exists($dirname . '__oo_extract_tmp/foo')) {
/PHP-8.0/ext/standard/tests/general_functions/
H A Dbug41518.phpt2 Bug #41518 (file_exists() warns of open_basedir restriction on non-existent file)
22 var_dump(file_exists($tmp_file)); //exists
23 var_dump(file_exists($tmp_file."nosuchfile")); //doesn't exist
/PHP-8.0/ext/openssl/tests/
H A Dopenssl_cms_sign_verify_detached.phpt29 if (file_exists($outfile)) {
34 if (file_exists($vout)) {
48 if (file_exists($outfile)) {
53 if (file_exists($vout)) {
67 if (file_exists($outfile)) {
72 if (file_exists($vout)) {
83 if (file_exists($outfile)) {
88 if (file_exists($vout)) {
H A Dopenssl_cms_sign_verify_nodetached_pem.phpt29 if (file_exists($outfile)) {
34 if (file_exists($vout)) {
45 if (file_exists($outfile)) {
50 if (file_exists($vout)) {
65 if (file_exists($outfile)) {
69 if (file_exists($vout)) {
/PHP-8.0/win32/build/
H A Dmkdist.php147 if (file_exists("$source_dir/$itemdb")) {
313 if (!file_exists($dll)) {
316 if (!file_exists($tdll)) {
318 if (!file_exists($tdll)) {
339 if (file_exists("$php_build_dir/bin/libenchant2.dll")) {
349 if (!file_exists("$dest") || !is_dir("$dest")) {
382 if (!file_exists($dll)) {
385 if (!file_exists($tdll)) {
435 if(!file_exists($directory) || !is_dir($directory)) {
527 if (file_exists($destfilename))
[all …]
/PHP-8.0/ext/standard/tests/file/windows_links/
H A Dbug48746.phpt31 var_dump(file_exists("directory"));
32 var_dump(file_exists("mklink_junction"));
33 var_dump(file_exists("mounted_volume"));
34 var_dump(file_exists("$fullpath"));
/PHP-8.0/ext/phar/tests/cache_list/files/
H A Dwrite4.phar2 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
5 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"), file_get_contents("phar://" . __FILE__ . …
H A Dwrite7.phar3 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
6 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));

Completed in 29 milliseconds

12345678910>>...13