Home
last modified time | relevance | path

Searched refs:unlink (Results 1 – 25 of 1382) sorted by relevance

12345678910>>...56

/PHP-7.0/ext/standard/tests/file/
H A Dunlink_error-win32.phpt2 Testing unlink() function : error conditions
28 var_dump( unlink() );
30 var_dump( unlink($filename, $context, true) );
58 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
68 *** Testing unlink() : error conditions ***
78 -- Testing unlink() on invalid arguments --
80 Warning: unlink(): %s in %s on line %d
84 Warning: unlink(): %s in %s on line %d
88 Warning: unlink(): %s in %s on line %d
101 -- Testing unlink() on non-existent file --
[all …]
H A Dunlink_error.phpt2 Testing unlink() function : error conditions
28 var_dump( unlink() );
30 var_dump( unlink($filename, $context, true) );
58 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
68 *** Testing unlink() : error conditions ***
78 -- Testing unlink() on invalid arguments --
80 Warning: unlink(): %s in %s on line %d
84 Warning: unlink(): %s in %s on line %d
88 Warning: unlink(): %s in %s on line %d
101 -- Testing unlink() on non-existent file --
[all …]
H A Dunlink_variation2-win32.phpt2 Test unlink() function : usage variations - unlink file in use
11 /* Prototype : bool unlink ( string $filename [, resource $context] );
15 /* Try to unlink file when file handle is still in use */
19 echo "*** Testing unlink() on a file when file handle is open ***\n";
25 // try unlink() on $filename
26 var_dump( unlink($filename) ); // expected: false as file handle is still open
30 // now unlink file
31 var_dump( unlink($filename) ); // expected: true
37 *** Testing unlink() on a file when file handle is open ***
39 Warning: unlink(%s): %s in %s on line %d
H A Dunlink_variation3.phpt2 Test unlink() function : usage variations - unlink links
21 echo "*** Testing unlink() on soft and hard links ***\n";
28 echo "-- Testing unlink() on soft link --\n";
31 // unlink soft link
32 var_dump( unlink($linkname) ); // expected: true
35 echo "-- Testing unlink() on hard link --\n";
39 var_dump( unlink($linkname) ); // expected: true
43 var_dump( unlink($filename) );
49 *** Testing unlink() on soft and hard links ***
50 -- Testing unlink() on soft link --
[all …]
H A Dunlink_variation7.phpt2 Test unlink() function : usage variation different types for context
7 /* Prototype : bool unlink(string filename[, context context])
13 echo "*** Testing unlink() : usage variation different types for context ***\n";
114 var_dump( unlink($filename, $value) );
118 unlink($filename);
125 *** Testing unlink() : usage variation different types for context ***
144 Error: 2 - unlink() expects parameter 2 to be resource, float given, %s(%d)
148 Error: 2 - unlink() expects parameter 2 to be resource, float given, %s(%d)
152 Error: 2 - unlink() expects parameter 2 to be resource, float given, %s(%d)
180 Error: 2 - unlink() expects parameter 2 to be resource, null given, %s(%d)
[all …]
H A Dbug39367.phpt12 unlink('/tmp/1link');
13 unlink('/tmp/1tmp');
14 unlink('/tmp/testfile1');
21 unlink('/tmp/1link');
26 unlink('/tmp/1link');
27 unlink('/tmp/1tmp');
28 unlink('/tmp/testfile1');
H A Dunlink_variation4.phpt2 Test unlink() function : usage variations - unlink deleted file
5 /* Prototype : bool unlink ( string $filename [, resource $context] );
16 echo "*** Testing unlink() on deleted file ***\n";
22 var_dump( unlink($filename) ); // expected: true
26 var_dump( unlink($filename) ); // expected: false
31 *** Testing unlink() on deleted file ***
35 Warning: unlink(%s/unlink_variation4.tmp): %s in %s on line %d
H A Dunlink_variation2.phpt2 Test unlink() function : usage variations - unlink file in use
11 /* Prototype : bool unlink ( string $filename [, resource $context] );
15 /* Try to unlink file when file handle is still in use */
19 echo "*** Testing unlink() on a file which is in use ***\n";
25 // try unlink() on $filename
26 var_dump( unlink($filename) ); // expected: true on linux
34 *** Testing unlink() on a file which is in use ***
H A Dunlink_basic.phpt2 Testing unlink() function : basic functionality
5 /* Prototype : bool unlink ( string $filename [, resource $context] );
11 echo "*** Testing unlink() on a file ***\n";
18 var_dump( unlink($filename) );
21 echo "\n*** Testing unlink() : checking second argument ***\n";
30 var_dump( unlink($filename, $context) ); // using $context in second argument
36 *** Testing unlink() on a file ***
40 *** Testing unlink() : checking second argument ***
H A Dunlink_variation8.phpt2 Test unlink() function : variation: various valid and invalid paths
13 /* Prototype : bool unlink(string filename[, context context])
19 echo "*** Testing unlink() : variation ***\n";
64 unlink($fileToLinkTo);
70 $res = unlink($tounlink);
80 unlink($file);
94 $res = unlink($tounlink);
104 unlink($linkedfile);
112 *** Testing unlink() : variation ***
178 Warning: unlink(unlinkVar8.tmp/file.tmp/): Not a directory in %s on line %d
[all …]
H A Dsymlink_to_symlink.phpt22 @unlink($prefix . "_nonexistent");
37 unlink($prefix . "_link5");
38 unlink($prefix . "_link4");
39 unlink($prefix . "_link3");
40 unlink($prefix . "_link2");
41 unlink($prefix . "_link1");
42 unlink($prefix . "_file");
H A Dunlink_variation8-win32.phpt2 Test unlink() function : variation: various valid and invalid paths
13 /* Prototype : bool unlink(string filename[, context context])
19 echo "*** Testing unlink() : variation ***\n";
65 $res = unlink($tounlink);
75 unlink($file);
81 *** Testing unlink() : variation ***
90 Warning: unlink(unlinkVar8.tmp/../BADDIR/file.tmp): No such file or directory in %s on line %d
93 Warning: unlink(BADDIR/file.tmp): No such file or directory in %s on line %d
102 Warning: unlink(%s/BADDIR/file.tmp): No such file or directory in %s on line %d
105 Warning: unlink(unlinkVar8.tmp/file.tmp/): Invalid argument in %s on line %d
[all …]
H A Dunlink_variation10.phpt2 Test unlink() function : variation: unlinking directories
13 /* Prototype : bool unlink(string filename[, context context])
19 echo "*** Testing unlink() : variation ***\n";
52 echo "\n--- try to unlink a directory ---\n";
53 unlink($dirToLinkTo);
67 $res = unlink($tounlink);
77 unlink($linkedDir);
85 *** Testing unlink() : variation ***
103 --- try to unlink a directory ---
105 Warning: unlink(unlinkVar8.tmp/linkme.tmp): %s in %s on line %d
H A Dunlink_variation9-win32.phpt2 Test unlink() function : variation: various valid and invalid paths
13 /* Prototype : bool unlink(string filename[, context context])
19 echo "*** Testing unlink() : variation ***\n";
65 $res = unlink($tounlink);
75 unlink($file);
83 *** Testing unlink() : variation ***
92 Warning: unlink(unlinkVar9.tmp\..\BADDIR\file.tmp): No such file or directory in %s on line %d
95 Warning: unlink(BADDIR\file.tmp): No such file or directory in %s on line %d
104 Warning: unlink(%s\BADDIR\file.tmp): No such file or directory in %s on line %d
107 Warning: unlink(unlinkVar9.tmp\file.tmp\): Invalid argument in %s on line %d
[all …]
H A Dunlink_variation6.phpt2 Test unlink() function : variation
7 /* Prototype : bool unlink(string filename[, context context])
13 echo "*** Testing unlink() : variation: contexts and relative files ***\n";
22 var_dump(unlink($testfile, $context));
37 *** Testing unlink() : variation: contexts and relative files ***
H A Dunlink_variation1.phpt2 Test unlink() function : usage variations - unlinking file in a directory
13 unlink ($filename);
17 unlink($filename);
21 /* Prototype : bool unlink ( string $filename [, resource $context] );
37 echo "\n*** Testing unlink() on file inside a directory ***\n";
48 var_dump( unlink($filename) ); // expected false
53 var_dump( unlink($filename) ); // expected true
66 var_dump( unlink($filename) ); // expected: true
75 *** Testing unlink() on file inside a directory ***
79 Warning: unlink(%s): %s in %s on line %d
H A Dunlink_variation1-win32.phpt2 Test unlink() function : usage variations - unlinking file in a directory
11 /* Prototype : bool unlink ( string $filename [, resource $context] );
27 echo "\n*** Testing unlink() on file inside a directory ***\n";
39 var_dump( unlink($filename) ); // expected: true
58 var_dump( unlink($filename) ); // expected: false
63 var_dump( unlink($filename) );
71 *** Testing unlink() on file inside a directory ***
81 Warning: unlink(%s/unlink_variation1/unlink_variation1-win32.tmp): Permission denied in %s on line …
H A Dsymlink.phpt18 @unlink($link);
25 @unlink($link);
28 @unlink($link);
32 @unlink($link);
35 @unlink($filename);
38 @unlink($link);
H A Dtouch.phpt19 @unlink($filename);
23 @unlink($filename);
27 @unlink($filename);
31 @unlink($filename);
37 @unlink($filename);
H A Drename_variation6-win32.phpt9 @unlink($fn);
31 @unlink($tmp_link);
32 @unlink($tmp_link2);
33 @unlink($tmp_file);
/PHP-7.0/tests/security/
H A Dopen_basedir_unlink.phpt9 test_open_basedir_before("unlink");
11 var_dump(unlink("../bad/bad.txt"));
12 var_dump(unlink(".././bad/bad.txt"));
13 var_dump(unlink("../bad/../bad/bad.txt"));
14 var_dump(unlink("./.././bad/bad.txt"));
15 var_dump(unlink($initdir."/test/bad/bad.txt"));
17 test_open_basedir_after("unlink");
25 *** Testing open_basedir configuration [unlink] ***
32 Warning: unlink(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allow…
35 Warning: unlink(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the all…
[all …]
/PHP-7.0/ext/standard/tests/mail/
H A Dmail_basic6.phpt28 @unlink($outFile);
34 unlink($outFile);
38 @unlink($outFile);
44 @unlink($outFile);
49 @unlink($outFile);
55 @unlink($outFile);
60 @unlink($outFile);
66 @unlink($outFile);
70 @unlink($outFile);
76 @unlink($outFile);
[all …]
/PHP-7.0/ext/phar/tests/
H A Dfopen_edgecases.phpt2 Phar: fopen/stat/fseek/unlink/rename edge cases
49 unlink($pname2 . '/hi');
50 unlink('phar://');
51 unlink('phar://foo.phar');
52 unlink($pname . '/oops');
71 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
73 <?php unlink(dirname(__FILE__) . '/fopen_edgetest.phar');
100 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
104 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
108 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
[all …]
H A Dphar_decompress.phpt52 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
53 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.zip');
54 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.hooba.phar');
55 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
56 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.gz');
57 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar.gz');
58 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar');
/PHP-7.0/ext/zlib/tests/
H A Dzlib_scheme_unlink_basic.phpt2 Test compress.zlib:// scheme with the unlink function
13 unlink($srcFile);
19 Warning: unlink(): ZLIB does not allow unlinking in %s on line %d

Completed in 30 milliseconds

12345678910>>...56