Home
last modified time | relevance | path

Searched refs:readlink (Results 1 – 25 of 28) sorted by relevance

12

/PHP-8.0/ext/standard/tests/file/
H A Dreadlink_realpath_error.phpt2 Test readlink() and realpath() functions: error conditions
11 echo "\n*** Testing readlink() on a non-existent link ***\n";
12 var_dump( readlink(__DIR__."/readlink_error.tmp") );
14 echo "\n*** Testing readlink() on existing file ***\n";
15 var_dump( readlink(__FILE__) );
18 var_dump( readlink(__DIR__) );
26 *** Testing readlink() on a non-existent link ***
31 *** Testing readlink() on existing file ***
33 Warning: readlink(): Invalid argument in %s on line %d
36 *** Testing readlink() on existing directory ***
[all …]
H A Dreadlink_realpath_error-win32.phpt2 Test readlink() and realpath() functions: error conditions
11 echo "\n*** Testing readlink() on a non-existent link ***\n";
12 var_dump( readlink(__DIR__."/readlink_error.tmp") );
14 echo "\n*** Testing readlink() on existing file ***\n";
15 var_dump( readlink(__FILE__) );
17 echo "\n*** Testing readlink() on existing directory ***\n";
18 var_dump( readlink(__DIR__) );
26 *** Testing readlink() on a non-existent link ***
28 Warning: readlink(): readlink failed to read the symbolic link (%s, error %d) in %s on line %d
31 *** Testing readlink() on existing file ***
[all …]
H A Dreadlink_realpath_variation3.phpt2 Test readlink() and realpath() functions: usage variation - invalid args
5 echo "*** Testing readlink() and realpath() : usage variations ***\n";
24 var_dump( readlink($link_string[$loop_counter]) );
31 *** Testing readlink() and realpath() : usage variations ***
33 *** Testing readlink() and realpath() with linkname as empty string, NULL and single space ***
36 Warning: readlink(): %s in %s on line %d
41 Warning: readlink(): %s in %s on line %d
46 Warning: readlink(): %s in %s on line %d
51 Warning: readlink(): %s in %s on line %d
56 Warning: readlink(): %s in %s on line %d
[all …]
H A Dreadlink_variation1.phpt2 Test readlink() function: usage variations - invalid filenames
9 /* Testing readlink() with invalid arguments -int, float, bool, NULL, resource */
29 var_dump( readlink($filename) );
41 Warning: readlink(): %s in %s on line %d
44 Warning: readlink(): %s in %s on line %d
47 Warning: readlink(): %s in %s on line %d
50 Warning: readlink(): %s in %s on line %d
53 Warning: readlink(): %s in %s on line %d
56 Warning: readlink(): %s in %s on line %d
59 Warning: readlink(): %s in %s on line %d
H A Dreadlink_realpath_variation1.phpt11 echo "*** Testing readlink() and realpath() : usage variations ***\n";
16 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
34 var_dump( readlink($obj1->linkname) );
37 var_dump( readlink($obj2->linkname) );
47 var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
50 var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
69 *** Testing readlink() and realpath() : usage variations ***
71 *** Testing readlink() and realpath() with linkname stored inside a object ***
73 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
84 Warning: readlink(): Invalid argument in %s on line %d
[all …]
H A Dreadlink_realpath_variation2-win32.phpt14 echo "*** Testing readlink() and realpath() : usage variations ***\n";
23 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n";
32 var_dump( readlink($link_arr[0]) );
35 var_dump( readlink($link_arr[1]) );
45 var_dump( readlink($link_arr[0]) ); // invalid because readlink doesn't work with hardlink
48 var_dump( readlink($link_arr[1]) ); // invalid because readlink doesn't work with hardlink
67 *** Testing readlink() and realpath() : usage variations ***
69 *** Testing readlink() and realpath() with linkname stored in an array ***
71 -- Testing readlink() and realpath() with softlink, linkname stored inside an array --
79 Warning: readlink(): readlink failed to read the symbolic link (%s) in %s on line %d
[all …]
H A Dreadlink_realpath_variation2.phpt11 echo "*** Testing readlink() and realpath() : usage variations ***\n";
20 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n";
29 var_dump( readlink($link_arr[0]) );
32 var_dump( readlink($link_arr[1]) );
42 var_dump( readlink($link_arr[0]) ); // invalid because readlink doesn't work with hardlink
45 var_dump( readlink($link_arr[1]) ); // invalid because readlink doesn't work with hardlink
64 *** Testing readlink() and realpath() : usage variations ***
66 *** Testing readlink() and realpath() with linkname stored in an array ***
76 Warning: readlink(): No such file or directory in %s on line %d
85 Warning: readlink(): Invalid argument in %s on line %d
[all …]
H A Dreadlink_realpath_variation1-win32.phpt2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in object(Bug …
14 echo "*** Testing readlink() and realpath() : usage variations ***\n";
19 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
37 var_dump( readlink($obj1->linkname) );
40 var_dump( readlink($obj2->linkname) );
50 var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
53 var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
72 *** Testing readlink() and realpath() : usage variations ***
74 *** Testing readlink() and realpath() with linkname stored inside a object ***
76 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
[all …]
H A Drename_variation7-win32.phpt20 var_dump(readlink($tmp_link));
21 var_dump(readlink($tmp_link2));
31 Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.l…
34 Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.l…
H A Dsymlink_to_symlink.phpt31 var_dump(readlink($prefix . "_link1"));
32 var_dump(readlink($prefix . "_link2"));
33 var_dump(readlink($prefix . "_link3"));
34 var_dump(readlink($prefix . "_link4"));
35 var_dump(readlink($prefix . "_link5"));
H A Drename_variation7.phpt19 var_dump(readlink($tmp_link));
20 var_dump(readlink($tmp_link2));
28 Warning: readlink(): No such file or directory in %s on line %d
H A Dsymlink.phpt16 var_dump(readlink($link));
20 var_dump(readlink($link));
42 var_dump(readlink("."));
52 Warning: readlink(): No such file or directory in %s on line %d
75 Warning: readlink(): Invalid argument in %s on line %d
H A Dreadlink_realpath_basic1.phpt2 Test readlink() and realpath functions: basic functionality - diff. path notation for links(Bug #42…
29 echo "*** Testing readlink() and realpath(): with valid and invalid path ***\n";
48 var_dump( readlink($link) );
68 *** Testing readlink() and realpath(): with valid and invalid path ***
84 Warning: readlink(): %s in %s on line %d
90 Warning: readlink(): %s in %s on line %d
96 Warning: readlink(): %s in %s on line %d
102 Warning: readlink(): %s in %s on line %d
H A Drename_variation6-win32.phpt22 var_dump(readlink($tmp_link));
23 var_dump(readlink($tmp_link2));
33 Warning: readlink(): %s in %s on line %d
H A Drename_variation6.phpt21 var_dump(readlink($tmp_link));
22 var_dump(readlink($tmp_link2));
32 Warning: readlink(): No such file or directory in %s on line %d
H A Dreadlink_realpath_basic2.phpt2 Test readlink() and realpath functions: basic functionality - diff. path notation for files
H A Dreadlink_realpath_basic2-win32.phpt2 Test readlink() and realpath functions: basic functionality - diff. path notation for files
/PHP-8.0/tests/security/
H A Dopen_basedir_readlink.phpt15 test_open_basedir_before("readlink", FALSE);
25 var_dump(readlink("symlink.txt"));
26 var_dump(readlink("../ok/symlink.txt"));
27 var_dump(readlink("../ok/./symlink.txt"));
28 var_dump(readlink("./symlink.txt"));
29 var_dump(readlink($initdir."/test/ok/symlink.txt"));
34 var_dump(readlink($symlink));
36 test_open_basedir_after("readlink");
45 *** Testing open_basedir configuration [readlink] ***
52 Warning: readlink(): open_basedir restriction in effect. File(symlink.txt) is not within the allowe…
[all …]
/PHP-8.0/ext/standard/tests/dir/
H A Dbug73877.phpt2 Bug #73877 readlink() returns garbage for UTF-8 paths
24 readlink($dir0),
25 readlink($dir1),
26 readlink($junk0),
27 strlen(readlink($dir0)) === strlen(readlink($junk0))
/PHP-8.0/ext/standard/tests/file/windows_links/
H A Dreadlink_compat.phpt2 Test readlink bc behaviour on Windows
4 Checks readlink is backward-compatible with PHP-7.3 and below
23 var_dump(readlink($tmpDir));
32 var_dump(readlink($link));
39 var_dump(readlink($link));
46 var_dump(readlink($link));
49 var_dump(readlink($link));
60 var_dump(readlink($link));
63 var_dump(readlink($link));
68 var_dump(readlink($tmpDir . '\\test\\directory'));
[all …]
/PHP-8.0/Zend/
H A Dzend_gdb.c134 if (readlink(buf, out, sizeof(out) - 1) > 0) { in zend_gdb_present()
H A Dzend_virtual_cwd.h144 # define php_sys_readlink(link, target, target_len) readlink(link, target, target_len)
/PHP-8.0/ext/standard/
H A Dlink.c59 PHP_FUNCTION(readlink) in PHP_FUNCTION() argument
/PHP-8.0/ext/phar/tests/tar/files/
H A Dtarmaker.php.inc65 $link = @readlink($current);
H A Dmake.dangerous.tar.php.inc66 $link = @readlink($current);

Completed in 24 milliseconds

12