Home
last modified time | relevance | path

Searched refs:realpath (Results 1 – 25 of 99) sorted by relevance

1234

/PHP-7.4/ext/standard/tests/file/
H A Drealpath_error-win32.phpt2 Test realpath() function: error conditions
11 /* Prototype: string realpath ( string $path );
15 echo "*** Testing realpath() for error conditions ***\n";
16 var_dump( realpath() ); // args < expected
17 var_dump( realpath(1, 2) ); // args > expected
22 *** Testing realpath() for error conditions ***
24 Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d
27 Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d
H A Drealpath_basic2.phpt2 realpath() with relative directory
6 var_dump(realpath('.') == realpath(getcwd()));
8 var_dump(realpath('.') == realpath(getcwd()));
H A Drealpath_variation-win32-mb.phpt2 Test realpath() function: usage variation
11 /* Prototype: string realpath ( string $path );
17 echo "*** Testing realpath(): usage variations ***\n";
37 var_dump( realpath($obj1->filename) );
38 var_dump( realpath($obj2->filename) );
46 var_dump( realpath($file_arr[0]) );
47 var_dump( realpath($file_arr[1]) );
65 var_dump( realpath($file_string[$loop_counter]) );
79 *** Testing realpath(): usage variations ***
81 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Drealpath_variation-win32.phpt2 Test realpath() function: usage variation
11 /* Prototype: string realpath ( string $path );
17 echo "*** Testing realpath(): usage variations ***\n";
37 var_dump( realpath($obj1->filename) );
38 var_dump( realpath($obj2->filename) );
46 var_dump( realpath($file_arr[0]) );
47 var_dump( realpath($file_arr[1]) );
65 var_dump( realpath($file_string[$loop_counter]) );
79 *** Testing realpath(): usage variations ***
81 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Dreadlink_realpath_error-win32.phpt2 Test readlink() and realpath() functions: error conditions
14 Prototype: string realpath ( string $path );
31 echo "*** Testing realpath(): error conditions ***\n";
32 var_dump( realpath() ); // args < expected
33 var_dump( realpath(1, 2) ); // args > expected
35 echo "\n*** Testing realpath() on a non-existent file ***\n";
36 var_dump( realpath(__DIR__."/realpath_error.tmp") );
59 *** Testing realpath(): error conditions ***
61 Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d
64 Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d
[all …]
H A Dreadlink_realpath_error.phpt2 Test readlink() and realpath() functions: error conditions
14 Prototype: string realpath ( string $path );
31 echo "*** Testing realpath(): error conditions ***\n";
32 var_dump( realpath() ); // args < expected
33 var_dump( realpath(1, 2) ); // args > expected
35 echo "\n*** Testing realpath() on a non-existent file ***\n";
36 var_dump( realpath(__DIR__."/realpath_error.tmp") );
63 *** Testing realpath(): error conditions ***
65 Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d
68 Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d
[all …]
H A Dreadlink_realpath_variation1.phpt14 Prototype: string realpath ( string $path );
18 echo "*** Testing readlink() and realpath() : usage variations ***\n";
23 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
42 var_dump( realpath($obj1->linkname) );
45 var_dump( realpath($obj2->linkname) );
55 var_dump( realpath($obj1->linkname) );
58 var_dump( realpath($obj2->linkname) );
76 *** Testing readlink() and realpath() : usage variations ***
78 *** Testing readlink() and realpath() with linkname stored inside a object ***
80 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
[all …]
H A Dreadlink_realpath_variation1-win32.phpt17 Prototype: string realpath ( string $path );
21 echo "*** Testing readlink() and realpath() : usage variations ***\n";
26 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
45 var_dump( realpath($obj1->linkname) );
48 var_dump( realpath($obj2->linkname) );
58 var_dump( realpath($obj1->linkname) );
61 var_dump( realpath($obj2->linkname) );
79 *** Testing readlink() and realpath() : usage variations ***
81 *** Testing readlink() and realpath() with linkname stored inside a object ***
83 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
[all …]
H A Dreadlink_realpath_variation2.phpt14 Prototype: string realpath ( string $path );
18 echo "*** Testing readlink() and realpath() : usage variations ***\n";
27 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n";
37 var_dump( realpath($link_arr[0]) );
40 var_dump( realpath($link_arr[1]) );
50 var_dump( realpath($link_arr[0]) );
53 var_dump( realpath($link_arr[1]) );
71 *** Testing readlink() and realpath() : usage variations ***
73 *** Testing readlink() and realpath() with linkname stored in an array ***
75 -- Testing readlink() and realpath() with softlink, linkname stored inside an array --
[all …]
H A Dreadlink_realpath_variation2-win32.phpt17 Prototype: string realpath ( string $path );
21 echo "*** Testing readlink() and realpath() : usage variations ***\n";
30 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n";
40 var_dump( realpath($link_arr[0]) );
43 var_dump( realpath($link_arr[1]) );
53 var_dump( realpath($link_arr[0]) );
56 var_dump( realpath($link_arr[1]) );
74 *** Testing readlink() and realpath() : usage variations ***
76 *** Testing readlink() and realpath() with linkname stored in an array ***
78 -- Testing readlink() and realpath() with softlink, linkname stored inside an array --
[all …]
H A Dreadlink_realpath_variation3.phpt2 Test readlink() and realpath() functions: usage variation - invalid args
8 Prototype: string realpath ( string $path );
12 echo "*** Testing readlink() and realpath() : usage variations ***\n";
14 echo "\n*** Testing readlink() and realpath() with linkname as empty string, NULL and single space …
32 var_dump( realpath($link_string[$loop_counter]) );
38 *** Testing readlink() and realpath() : usage variations ***
40 *** Testing readlink() and realpath() with linkname as empty string, NULL and single space ***
H A Dclearstatcache_001.phpt22 var_dump(realpath(__FILE__ . "_link2"));
24 var_dump(realpath(__FILE__ . "_link2"));
26 var_dump(realpath(__FILE__ . "_link2"));
28 var_dump(realpath(__FILE__ . "_link2"));
31 var_dump(realpath(__FILE__ . "_link2"));
H A Drealpath_variation2.phpt2 Test realpath() function : variation
12 /* Prototype : string realpath(string path)
18 echo "*** Testing realpath() : variation ***\n";
34 var_dump( realpath($path) );
40 *** Testing realpath() : variation ***
H A Drealpath_bug77484.phpt2 Bug #77484 Zend engine crashes when calling realpath in invalid working dir
26 $rp0 = realpath('');
29 $rp1 = realpath('.');
30 $rp2 = realpath('./');
H A Drealpath_basic3.phpt2 Test realpath() with relative paths
5 /* Prototype: string realpath ( string $path );
9 echo "\n*** Testing basic functions of realpath() with files ***\n";
22 echo "\n*** Testing realpath() on filenames ***\n";
45 var_dump( realpath($file) );
62 *** Testing basic functions of realpath() with files ***
64 *** Testing realpath() on filenames ***
H A Drealpath_basic-win32.phpt2 Test realpath() function: basic functionality
11 /* Prototype: string realpath ( string $path );
15 echo "\n*** Testing basic functions of realpath() with files ***\n";
28 echo "\n*** Testing realpath() on filenames ***\n";
48 var_dump( realpath($file) );
65 *** Testing basic functions of realpath() with files ***
67 *** Testing realpath() on filenames ***
H A Dtempnam_variation1-win32-mb.phpt38 …if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sy…
41 …else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file…
H A Dtempnam_variation1-win32.phpt38 …if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sy…
41 …else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file…
H A Dbug43248.phpt2 Bug #43248 (backward compatibility break in realpath())
5 echo realpath(__DIR__ . '/../file/');
H A Drealpath_basic-win32-mb.phpt2 Test realpath() function: basic functionality
11 /* Prototype: string realpath ( string $path );
15 echo "\n*** Testing basic functions of realpath() with files ***\n";
28 echo "\n*** Testing realpath() on filenames ***\n";
48 var_dump( realpath($file) );
65 *** Testing basic functions of realpath() with files ***
67 *** Testing realpath() on filenames ***
H A Drealpath_basic4.phpt2 Test realpath() with relative paths
9 echo "1. " . realpath("$file_path/realpath_basic4/link2") . "\n";
10 echo "2. " . realpath("$file_path/realpath_basic4/link2/test") . "\n";
H A Dtempnam_variation8-win32.phpt53 print(realpath($file_name));
64 …if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sy…
67 …else if (realpath($file_dir) == realpath($dir_req) || realpath($file_dir."\\") == realpath($dir_re…
/PHP-7.4/tests/security/
H A Dopen_basedir_realpath.phpt14 test_open_basedir("realpath");
22 *** Testing open_basedir configuration [realpath] ***
29 Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad) is not within the allowe…
32 Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad\bad.txt) is not within th…
35 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa…
38 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa…
41 Warning: realpath(): open_basedir restriction in effect. File(%s\) is not within the allowed path(s…
44 Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad) is not within the allowe…
47 Warning: realpath(): open_basedir restriction in effect. File(%s\test\bad\bad.txt) is not within th…
53 Warning: realpath(): open_basedir restriction in effect. File(%s\test) is not within the allowed pa…
[all …]
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dtest_long_path_2.phpt2 Basic long path test with file I/O, multibyte path and realpath() check
25 $p = realpath(__DIR__) . DIRECTORY_SEPARATOR . $p;
32 /* path exists now, ensure realpath() works! */
33 $p2 = realpath($p);
35 /* realpath() will cut off the trailing slash */
50 var_dump(file_exists(realpath(__DIR__) . DIRECTORY_SEPARATOR . $s));
/PHP-7.4/tests/basic/
H A Dbug54514.phpt5 if(realpath(getenv('TEST_PHP_EXECUTABLE')) === realpath(PHP_BINARY)) {

Completed in 35 milliseconds

1234