/php-src/ext/standard/tests/file/ |
H A D | readlink_realpath_variation1-win32.phpt | 26 public $linkname; 28 $this->linkname = $link; 37 var_dump( readlink($obj1->linkname) ); 38 var_dump( realpath($obj1->linkname) ); 40 var_dump( readlink($obj2->linkname) ); 41 var_dump( realpath($obj2->linkname) ); 44 unlink($obj1->linkname); 45 unlink($obj2->linkname); 51 var_dump( realpath($obj1->linkname) ); 57 unlink($obj1->linkname); [all …]
|
H A D | readlink_realpath_variation1.phpt | 23 public $linkname; 25 $this->linkname = $link; 34 var_dump( readlink($obj1->linkname) ); 35 var_dump( realpath($obj1->linkname) ); 37 var_dump( readlink($obj2->linkname) ); 38 var_dump( realpath($obj2->linkname) ); 41 unlink($obj1->linkname); 42 unlink($obj2->linkname); 48 var_dump( realpath($obj1->linkname) ); 54 unlink($obj1->linkname); [all …]
|
H A D | symlink_link_linkinfo_is_link_variation7.phpt | 31 // create another link to $linkname 32 var_dump( symlink($linkname, $linkname) ); 34 unlink($linkname); 38 var_dump( symlink($dirname, $linkname) ); 40 var_dump( symlink($linkname, $linkname) ); 43 rmdir($linkname); 45 unlink($linkname); 50 var_dump( link($filename, $linkname) ); 51 // create another link to $linkname 52 var_dump( link($linkname, $linkname) ); [all …]
|
H A D | symlink_link_linkinfo_is_link_error2.phpt | 11 // create temp $filename and create link $linkname to it 16 // linkname used to create soft/hard link 17 $linkname = __DIR__."/symlink_link_linkinfo_is_link_link_error2.tmp"; 22 var_dump( link('', $linkname) ); // empty string as filename 23 var_dump( link(' ', $linkname) ); // space as filename 24 var_dump( link(false, $linkname) ); // boolean false as filename 25 var_dump( link($filename, '') ); // '' as linkname 26 var_dump( link($filename, false) ); // false as linkname 31 var_dump( is_link('') ); // empty string as linkname 32 var_dump( is_link(' ') ); // space as linkname [all …]
|
H A D | link_win32.phpt | 16 $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 D | symlink_link_linkinfo_is_link_error1.phpt | 11 // create temp $filename and create link $linkname to it 16 // linkname used to create soft/hard link 17 $linkname = __DIR__."/symlink_link_linkinfo_is_link_link_error1.tmp"; 22 var_dump( symlink('', $linkname) ); // empty string as filename 23 var_dump( symlink(false, $linkname) ); // boolean false as filename 24 var_dump( symlink($filename, '') ); // '' as linkname 25 var_dump( symlink($filename, false) ); // false as linkname 30 var_dump( linkinfo('') ); // empty string as linkname 31 var_dump( linkinfo(false) ); // boolean false as linkname
|
H A D | unlink_variation3.phpt | 23 $linkname = "$file_path/unlink_variation3_link.tmp"; 27 var_dump( symlink($filename, $linkname) ); // expected: true 29 var_dump( unlink($linkname) ); // expected: true 30 var_dump( file_exists($linkname) ); // confirm link is deleted 34 var_dump( link($filename, $linkname) ); // expected: true 36 var_dump( unlink($linkname) ); // expected: true 37 var_dump( file_exists($linkname) ); // confirm link is deleted
|
H A D | lstat_stat_variation12.phpt | 24 $linkname = "$file_path/lstat_stat_variation12_link.tmp"; 25 symlink($filename, $linkname); // temp link 29 $linkname = "$file_path/lstat_stat_variation12_link.tmp"; 30 $old_stat = lstat($linkname); 34 var_dump( is_link($linkname) ); 35 $new_stat = lstat($linkname);
|
H A D | readfile_variation2.phpt | 31 $linkname = "$file_path/readfile_variation2_link.tmp"; 37 var_dump( symlink($filename, $linkname) ); 39 $count = readfile($linkname); // with default args 43 unlink($linkname); 48 var_dump( link($filename, $linkname) ); 50 $count = readfile($linkname); // default args 54 unlink($linkname);
|
H A D | symlink_link_linkinfo_is_link_variation3.phpt | 28 var_dump( symlink($filename, $linkname) ); 30 $link_stat = lstat($linkname); // lstat of link 43 var_dump( filesize($linkname) ); 46 $stat = lstat($linkname); 55 $fp = fopen($linkname, "a"); // open in append mode 65 var_dump( filesize($linkname) ); 68 $stat = lstat($linkname); 82 $data_from_link = file_get_contents($linkname); 87 var_dump( filesize($linkname) ); 90 $stat = lstat($linkname); [all …]
|
H A D | symlink_link_linkinfo_is_link_variation6.phpt | 22 $linkname = "$dirname/non_existent_link_variation5.tmp"; 25 var_dump( symlink($filename, $linkname) ); // this link won't get created 26 var_dump( linkinfo($linkname) ); 27 var_dump( is_link($linkname) ); 33 var_dump( link($filename, $linkname) ); 34 var_dump( linkinfo($linkname) ); 35 var_dump( is_link($linkname) );
|
H A D | symlink_link_linkinfo_is_link_variation1.phpt | 12 /* Variation 1 : Creating links across directories where linkname is stored as an object and array … 26 var $linkname; 28 $this->linkname = $link; 36 var_dump( symlink($filename, $obj->linkname) ); 38 $linkinfo = linkinfo($obj->linkname); 41 var_dump( is_link($obj->linkname) ); 43 unlink($obj->linkname); 50 var_dump( link($filename, $obj->linkname) ); 52 $linkinfo = linkinfo($obj->linkname); 55 var_dump( is_link($obj->linkname) ); [all …]
|
H A D | lstat_stat_variation15.phpt | 24 $linkname = "$file_path/lstat_stat_variation15_link.tmp"; 25 symlink($filename, $linkname); 30 $old_stat = lstat($linkname); 31 var_dump( chmod($linkname, 0777) ); 35 $new_stat = lstat($linkname);
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 23 $linkname = "$file_path/symlink_link_linkinfo_is_link_link_variation4.tmp"; 24 var_dump( link($filename, $linkname) ); 25 $data_from_link = file_get_contents($linkname); // data read from $filename 29 if( filesize($filename) == filesize($linkname) ) 36 $fp = fopen($linkname, "a"); // open in append mode 45 if( filesize($filename) == filesize($linkname) ) 57 $data_from_link = file_get_contents($linkname); 62 var_dump( filesize($linkname) ); 63 if( filesize($filename) == filesize($linkname) ) 69 unlink($linkname);
|
H A D | rename_variation5.phpt | 23 $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 D | lstat_stat_variation14.phpt | 17 $linkname = "$file_path/lstat_stat_variation14_hard.tmp"; 19 @unlink($linkname); 22 var_dump( link($filename, $linkname) ); 24 $link_stat = lstat($linkname);
|
H A D | readlink_realpath_variation3.phpt | 7 echo "\n*** Testing readlink() and realpath() with linkname as empty string, NULL and single space … 9 /* linkname as spaces */ 13 /* empty linkname */ 31 *** Testing readlink() and realpath() with linkname as empty string, NULL and single space ***
|
H A D | symlink_link_linkinfo_is_link_variation8.phpt | 22 $linkname = "symlink_link_linkinfo_is_link_variation8.tmp"; 29 var_dump( link($filename, $dirname."/".$linkname) ); // this works fine 31 unlink($dirname."/".$linkname); 42 $linkname = "symlink_link_linkinfo_is_link_variation8.tmp"; 49 var_dump( symlink($filename, $dirname."/".$linkname) ); // this works fine 51 unlink($dirname."/".$linkname);
|
H A D | symlink_link_linkinfo_is_link_variation5.phpt | 18 $linkname = "$file_path/symlink_link_linkinfo_is_link_link_variation5.tmp"; 32 var_dump( symlink($filename, $linkname) ); // create link 35 var_dump( unlink($linkname) ); // delete the link 41 $deleted_link = $linkname;
|
H A D | rename_variation2.phpt | 26 $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 D | file_variation5.phpt | 30 $linkname = "somelink"; 31 var_dump(symlink($filepath, $linkname)); 32 var_dump(file($linkname)); 33 var_dump(unlink($linkname));
|
H A D | readlink_realpath_variation2.phpt | 2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in array(Bug #… 20 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n"; 26 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an array --\n"; 39 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an array --\n"; 66 *** Testing readlink() and realpath() with linkname stored in an array *** 68 -- Testing readlink() and realpath() with softlink, linkname stored inside an array -- 82 -- Testing readlink() and realpath() with hardlink, linkname stored inside an array --
|
H A D | readlink_realpath_variation2-win32.phpt | 2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in array(Bug #… 23 echo "\n*** Testing readlink() and realpath() with linkname stored in an array ***\n"; 29 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an array --\n"; 42 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an array --\n"; 69 *** Testing readlink() and realpath() with linkname stored in an array *** 71 -- Testing readlink() and realpath() with softlink, linkname stored inside an array -- 85 -- Testing readlink() and realpath() with hardlink, linkname stored inside an array --
|
H A D | chmod_variation2.phpt | 37 $linkname = "somelink"; 38 var_dump(symlink($filepath, $linkname)); 40 var_dump(chmod($linkname, 0755)); 43 var_dump(unlink($linkname));
|
/php-src/ext/phar/ |
H A D | tar.h | 53 char linkname[100]; /* name of linked file */ member 82 char linkname[100]; /* name of linked file */ member
|