Home
last modified time | relevance | path

Searched refs:linkname (Results 1 – 25 of 32) sorted by relevance

12

/PHP-7.0/ext/standard/tests/file/
H A Dreadlink_realpath_variation1.phpt30 public $linkname;
32 $this->linkname = $link;
42 var_dump( realpath($obj1->linkname) );
44 var_dump( readlink($obj2->linkname) );
45 var_dump( realpath($obj2->linkname) );
48 unlink($obj1->linkname);
49 unlink($obj2->linkname);
55 var_dump( realpath($obj1->linkname) );
58 var_dump( realpath($obj2->linkname) );
61 unlink($obj1->linkname);
[all …]
H A Dsymlink_link_linkinfo_is_link_variation7.phpt42 var_dump( symlink($filename, $linkname) );
43 // create another link to $linkname
44 var_dump( symlink($linkname, $linkname) );
46 unlink($linkname);
50 var_dump( symlink($dirname, $linkname) );
52 var_dump( symlink($linkname, $linkname) );
54 unlink($linkname);
58 var_dump( link($filename, $linkname) );
59 // create another link to $linkname
60 var_dump( link($linkname, $linkname) );
[all …]
H A Dlink_win32.phpt16 $linkname = __DIR__ . '\\a_link.php';
17 link("$filename", "$linkname");
18 var_dump(file_exists("$linkname"));
19 $linkcontent = file_get_contents($linkname);
22 unlink($linkname);
H A Dsymlink_link_linkinfo_is_link_error2.phpt27 // create temp $filename and create link $linkname to it
32 // linkname used to create soft/hard link
40 var_dump( link($filename, $linkname, false) );
43 var_dump( link(NULL, $linkname) ); // NULL as filename
45 var_dump( link(' ', $linkname) ); // space as filename
47 var_dump( link($filename, NULL) ); // NULL as linkname
48 var_dump( link($filename, '') ); // '' as linkname
56 var_dump( is_link($linkname, "/") );
59 var_dump( is_link(NULL) ); // NULL as linkname
60 var_dump( is_link('') ); // empty string as linkname
[all …]
H A Dsymlink_link_linkinfo_is_link_error1.phpt30 // create temp $filename and create link $linkname to it
35 // linkname used to create soft/hard link
43 var_dump( symlink($filename, $linkname, true) );
46 var_dump( symlink(NULL, $linkname) ); // NULL as filename
49 var_dump( symlink($filename, NULL) ); // NULL as linkname
50 var_dump( symlink($filename, '') ); // '' as linkname
51 var_dump( symlink($filename, false) ); // false as linkname
58 var_dump( linkinfo($linkname, true) );
61 var_dump( linkinfo(NULL) ); // NULL as linkname
62 var_dump( linkinfo('') ); // empty string as linkname
[all …]
H A Dunlink_variation3.phpt26 $linkname = "$file_path/unlink_variation3_link.tmp";
30 var_dump( symlink($filename, $linkname) ); // expected: true
32 var_dump( unlink($linkname) ); // expected: true
33 var_dump( file_exists($linkname) ); // confirm link is deleted
37 var_dump( link($filename, $linkname) ); // expected: true
39 var_dump( unlink($linkname) ); // expected: true
40 var_dump( file_exists($linkname) ); // confirm link is deleted
H A Dreadfile_variation2.phpt35 $linkname = "$file_path/readfile_variation2_link.tmp";
41 var_dump( symlink($filename, $linkname) );
43 $count = readfile($linkname); // with default args
47 unlink($linkname);
52 var_dump( link($filename, $linkname) );
54 $count = readfile($linkname); // default args
58 unlink($linkname);
H A Dlstat_stat_variation12.phpt30 $linkname = "$file_path/lstat_stat_variation12_link.tmp";
31 symlink($filename, $linkname); // temp link
35 $linkname = "$file_path/lstat_stat_variation12_link.tmp";
36 $old_stat = lstat($linkname);
40 var_dump( is_link($linkname) );
41 $new_stat = lstat($linkname);
H A Dsymlink_link_linkinfo_is_link_variation3.phpt40 var_dump( symlink($filename, $linkname) );
42 $link_stat = lstat($linkname); // lstat of link
55 var_dump( filesize($linkname) );
58 $stat = lstat($linkname);
67 $fp = fopen($linkname, "a"); // open in append mode
77 var_dump( filesize($linkname) );
80 $stat = lstat($linkname);
94 $data_from_link = file_get_contents($linkname);
99 var_dump( filesize($linkname) );
102 $stat = lstat($linkname);
[all …]
H A Dsymlink_link_linkinfo_is_link_variation1.phpt24 /* Variation 1 : Creating links across directories where linkname is stored as an object and array …
38 var $linkname;
40 $this->linkname = $link;
48 var_dump( symlink($filename, $obj->linkname) );
50 var_dump( linkinfo($obj->linkname) );
52 var_dump( is_link($obj->linkname) );
54 unlink($obj->linkname);
61 var_dump( link($filename, $obj->linkname) );
63 var_dump( linkinfo($obj->linkname) );
65 var_dump( is_link($obj->linkname) );
[all …]
H A Drename_variation5.phpt23 $linkname = "$file_path/rename_variation5_link.tmp";
24 symlink($filename, $linkname);
27 var_dump( rename($linkname, $linkname) );
36 var_dump( rename($linkname, $dirname) );
38 var_dump( rename($linkname, $filename) );
43 var_dump( rename($filename, $linkname) );
50 var_dump( rename($dirname, $linkname) );
H A Dlstat_stat_variation15.phpt30 $linkname = "$file_path/lstat_stat_variation15_link.tmp";
31 symlink($filename, $linkname);
36 $old_stat = lstat($linkname);
37 var_dump( chmod($linkname, 0777) );
41 $new_stat = lstat($linkname);
H A Dsymlink_link_linkinfo_is_link_variation4.phpt42 $linkname = "$file_path/symlink_link_linkinfo_is_link_link_variation4.tmp";
43 var_dump( link($filename, $linkname) );
44 $data_from_link = file_get_contents($linkname); // data read from $filename
48 if( filesize($filename) == filesize($linkname) )
55 $fp = fopen($linkname, "a"); // open in append mode
64 if( filesize($filename) == filesize($linkname) )
76 $data_from_link = file_get_contents($linkname);
81 var_dump( filesize($linkname) );
82 if( filesize($filename) == filesize($linkname) )
88 unlink($linkname);
H A Dsymlink_link_linkinfo_is_link_variation6.phpt54 $linkname = "$dirname/non_existent_link_variation5.tmp";
57 var_dump( symlink($filename, $linkname) ); // this link won't get created
58 var_dump( linkinfo($linkname) );
59 var_dump( is_link($linkname) );
65 var_dump( link($filename, $linkname) );
66 var_dump( linkinfo($linkname) );
67 var_dump( is_link($linkname) );
H A Dlstat_stat_variation14.phpt30 $linkname = "$file_path/lstat_stat_variation14_hard.tmp";
32 @unlink($linkname);
35 var_dump( link($filename, $linkname) );
37 $link_stat = lstat($linkname);
H A Dfile_variation5.phpt30 $linkname = "somelink";
31 var_dump(symlink($filepath, $linkname));
32 var_dump(file($linkname));
33 var_dump(unlink($linkname));
H A Dsymlink_link_linkinfo_is_link_variation8.phpt34 $linkname = "symlink_link_linkinfo_is_link_variation8.tmp";
41 var_dump( link($filename, $dirname."/".$linkname) ); // this works fine
43 unlink($dirname."/".$linkname);
54 $linkname = "symlink_link_linkinfo_is_link_variation8.tmp";
61 var_dump( symlink($filename, $dirname."/".$linkname) ); // this works fine
63 unlink($dirname."/".$linkname);
H A Drename_variation2.phpt26 $linkname = $file_path."/rename_variation2_soft_link1.tmp";
27 var_dump(symlink($filename, $linkname));
31 var_dump( rename( $linkname, $dest_linkname) );
34 var_dump( file_exists($linkname) ); // expecting false
H A Dreadlink_realpath_variation2.phpt2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in array(Bug #…
27 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n";
33 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an array --\n";
46 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an array --\n";
73 *** Testing readlink() and realpath() with linkname stored in an array ***
75 -- Testing readlink() and realpath() with softlink, linkname stored inside an array --
89 -- Testing readlink() and realpath() with hardlink, linkname stored inside an array --
H A Dreadlink_realpath_variation3.phpt20 echo "\n*** Testing readlink() and realpath() with linkname as empty string, NULL and single space …
22 /* linkname as spaces */
26 /* empty linkname */
46 *** Testing readlink() and realpath() with linkname as empty string, NULL and single space ***
H A Dsymlink_link_linkinfo_is_link_variation5.phpt30 $linkname = "$file_path/symlink_link_linkinfo_is_link_link_variation5.tmp";
44 var_dump( symlink($filename, $linkname) ); // create link
47 var_dump( unlink($linkname) ); // delete the link
53 $deleted_link = $linkname;
H A Dchmod_variation2.phpt37 $linkname = "somelink";
38 var_dump(symlink($filepath, $linkname));
40 var_dump(chmod($linkname, 0755));
43 var_dump(unlink($linkname));
H A Dsymlink_link_linkinfo_is_link_basic1.phpt44 $linkname = "$file_path/$dirname/symlink_link_linkinfo_is_link_hardlink_basic1.tmp";
70 var_dump( link($file, $linkname) );
72 var_dump( linkinfo($linkname) );
74 var_dump( is_link($linkname) );
80 unlink($linkname);
H A Dsymlink_link_linkinfo_is_link_basic2.phpt40 $linkname = "$file_path/$dirname/symlink_link_linkinfo_is_link_hardlink_basic2.tmp";
56 var_dump( link("$file_path/$dirname", $linkname) ); // this doesn't work, expected false
57 var_dump( linkinfo($linkname) ); // link doesn't exists as not created, expected false
58 var_dump( is_link($linkname) ); // link doesn't exists as not created, expected false
/PHP-7.0/ext/phar/
H A Dtar.h53 char linkname[100]; /* name of linked file */ member
82 char linkname[100]; /* name of linked file */ member

Completed in 22 milliseconds

12