Home
last modified time | relevance | path

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

12345678910>>...59

/PHP-8.1/ext/standard/tests/file/
H A Dunlink_error-win32-mb.phpt2 Testing unlink() function : error conditions
23 echo "*** Testing unlink() : error conditions ***\n";
27 var_dump( unlink('') ); // $filename as empty string
37 echo "\n-- Testing unlink() on directory --\n";
43 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
54 *** Testing unlink() : error conditions ***
56 -- Testing unlink() on invalid arguments --
58 Warning: unlink(): %s in %s on line %d
62 Warning: unlink(): %s in %s on line %d
66 -- Testing unlink() on non-existent file --
[all …]
H A Dunlink_error.phpt2 Testing unlink() function : error conditions
21 echo "*** Testing unlink() : error conditions ***\n";
34 echo "\n-- Testing unlink() on directory --\n";
40 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
46 unlink(__DIR__."/unlink_error.tmp");
50 *** Testing unlink() : error conditions ***
52 -- Testing unlink() on invalid arguments --
54 Warning: unlink(): %s in %s on line %d
58 Warning: unlink(): %s in %s on line %d
62 -- Testing unlink() on non-existent file --
[all …]
H A Dunlink_error-win32.phpt2 Testing unlink() function : error conditions
21 echo "*** Testing unlink() : error conditions ***\n";
35 echo "\n-- Testing unlink() on directory --\n";
41 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
47 unlink(__DIR__."/unlink_error.tmp");
51 *** Testing unlink() : error conditions ***
53 -- Testing unlink() on invalid arguments --
55 Warning: unlink(): %s in %s on line %d
59 Warning: unlink(): %s in %s on line %d
63 -- Testing unlink() on non-existent file --
[all …]
H A Dunlink_variation3.phpt2 Test unlink() function : usage variations - unlink links
18 echo "*** Testing unlink() on soft and hard links ***\n";
25 echo "-- Testing unlink() on soft link --\n";
28 // unlink soft link
29 var_dump( unlink($linkname) ); // expected: true
32 echo "-- Testing unlink() on hard link --\n";
36 var_dump( unlink($linkname) ); // expected: true
40 var_dump( unlink($filename) );
46 *** Testing unlink() on soft and hard links ***
47 -- Testing unlink() on soft link --
[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_variation2.phpt2 Test unlink() function : usage variations - unlink file in use
6 /* Try to unlink file when file handle is still in use */
10 echo "*** Testing unlink() on a file which is in use ***\n";
16 // try unlink() on $filename
17 var_dump( unlink($filename) ); // expected: true on linux
25 *** Testing unlink() on a file which is in use ***
H A Dunlink_variation4.phpt2 Test unlink() function : usage variations - unlink deleted file
13 echo "*** Testing unlink() on deleted file ***\n";
19 var_dump( unlink($filename) ); // expected: true
23 var_dump( unlink($filename) ); // expected: false
28 *** Testing unlink() on deleted file ***
32 Warning: unlink(%s/unlink_variation4.tmp): %s in %s on line %d
H A Dunlink_basic.phpt2 Testing unlink() function : basic functionality
8 echo "*** Testing unlink() on a file ***\n";
15 var_dump( unlink($filename) );
18 echo "\n*** Testing unlink() : checking second argument ***\n";
27 var_dump( unlink($filename, $context) ); // using $context in second argument
33 *** Testing unlink() on a file ***
37 *** Testing unlink() : checking second argument ***
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.phpt2 Test unlink() function : variation: various valid and invalid paths
13 echo "*** Testing unlink() : variation ***\n";
58 unlink($fileToLinkTo);
64 $res = unlink($tounlink);
74 unlink($file);
88 $res = unlink($tounlink);
98 unlink($linkedfile);
105 *** Testing unlink() : variation ***
171 Warning: unlink(unlinkVar8.tmp/file.tmp/): Not a directory in %s on line %d
174 Warning: unlink(unlinkVar8.tmp/file.tmp/): %s directory in %s on line %d
[all …]
H A Dunlink_variation10.phpt2 Test unlink() function : variation: unlinking directories
13 echo "*** Testing unlink() : variation ***\n";
46 echo "\n--- try to unlink a directory ---\n";
47 unlink($dirToLinkTo);
61 $res = unlink($tounlink);
71 unlink($linkedDir);
78 *** Testing unlink() : variation ***
96 --- try to unlink a directory ---
98 Warning: unlink(unlinkVar10.tmp/linkme.tmp): %s in %s on line %d
H A Dunlink_variation8-win32.phpt2 Test unlink() function : variation: various valid and invalid paths
13 echo "*** Testing unlink() : variation ***\n";
59 $res = unlink($tounlink);
69 unlink($file);
74 *** Testing unlink() : variation ***
83 Warning: unlink(unlinkVar8.tmp/../BADDIR/file.tmp): No such file or directory in %s on line %d
86 Warning: unlink(BADDIR/file.tmp): No such file or directory in %s on line %d
95 Warning: unlink(%s/BADDIR/file.tmp): No such file or directory in %s on line %d
98 Warning: unlink(unlinkVar8.tmp/file.tmp/): No such file or directory in %s on line %d
101 Warning: unlink(%s/unlinkVar8.tmp/file.tmp/): No such file or directory in %s on line %d
H A Dunlink_variation9-win32.phpt2 Test unlink() function : variation: various valid and invalid paths
13 echo "*** Testing unlink() : variation ***\n";
59 $res = unlink($tounlink);
69 unlink($file);
76 *** Testing unlink() : variation ***
85 Warning: unlink(unlinkVar9.tmp\..\BADDIR\file.tmp): No such file or directory in %s on line %d
88 Warning: unlink(BADDIR\file.tmp): No such file or directory in %s on line %d
97 Warning: unlink(%s\BADDIR\file.tmp): No such file or directory in %s on line %d
100 Warning: unlink(unlinkVar9.tmp\file.tmp\): No such file or directory in %s on line %d
103 Warning: unlink(%s\unlinkVar9.tmp\file.tmp\): No such file or directory in %s on line %d
H A Dunlink_variation6.phpt2 Test unlink() function : variation
7 echo "*** Testing unlink() : variation: contexts and relative files ***\n";
16 var_dump(unlink($testfile, $context));
30 *** Testing unlink() : variation: contexts and relative files ***
H A Dsymlink.phpt18 @unlink($link);
25 @unlink($link);
28 @unlink($link);
32 @unlink($link);
35 @unlink($filename);
38 @unlink($link);
/PHP-8.1/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-8.1/ext/phar/tests/
H A Dbug79082.phpt23 unlink(__DIR__ . '/test79082-testfile');
24 unlink(__DIR__ . '/test79082-testfile2');
33 unlink(__DIR__ . '/test79082-testfile');
34 unlink(__DIR__ . '/test79082-testfile2');
39 unlink(__DIR__ . '/test79082.tar');
40 unlink(__DIR__ . '/test79082.zip');
41 unlink(__DIR__ . '/test79082-d.tar');
42 unlink(__DIR__ . '/test79082-d.zip');
H A Dphar_decompress.phpt50 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
51 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.zip');
52 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.hooba.phar');
53 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar');
54 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.gz');
55 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar.gz');
56 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar');
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');
70 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
72 <?php unlink(__DIR__ . '/fopen_edgetest.phar'); ?>
99 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
103 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
107 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
[all …]
/PHP-8.1/ext/standard/tests/mail/
H A Dmail_basic6.phpt22 @unlink($outFile);
28 unlink($outFile);
32 @unlink($outFile);
38 @unlink($outFile);
43 @unlink($outFile);
49 @unlink($outFile);
54 @unlink($outFile);
60 @unlink($outFile);
64 @unlink($outFile);
70 @unlink($outFile);
[all …]
/PHP-8.1/ext/dba/tests/
H A Dclean.inc3 @unlink($db_filename);
4 @unlink($db_filename.'.lck');
5 @unlink($db_filename.'-lock');
/PHP-8.1/ext/openssl/tests/
H A Dbug50713.phpt31 @unlink($signersFile);
32 @unlink($outFile);
33 @unlink($keyFile);
34 @unlink($certFile);
35 @unlink($cacertFile);
/PHP-8.1/ext/zlib/tests/
H A Dzlib_scheme_unlink_basic.phpt2 Test compress.zlib:// scheme with the unlink function
9 unlink($srcFile);
13 Warning: unlink(): ZLIB does not allow unlinking in %s on line %d
/PHP-8.1/ext/gd/tests/
H A Dimagefilter.phpt29 @unlink($SAVE_DIR."/".$filt. ".png");
40 @unlink($SAVE_DIR . "/IMG_FILTER_SMOOTH.png");
50 unlink($SAVE_DIR . "/IMG_FILTER_COLORIZE.png");
60 unlink($SAVE_DIR . "/IMG_FILTER_CONTRAST.png");
70 unlink($SAVE_DIR . "/IMG_FILTER_BRIGHTNESS.png");
80 unlink($SAVE_DIR . "/IMG_FILTER_PIXELATE.png");
90 unlink($SAVE_DIR . "/IMG_FILTER_SCATTER.png");
/PHP-8.1/ext/phar/tests/tar/
H A Dtar_makebz2.phpt29 @unlink(__DIR__ . '/tar_makebz2.phar.bz2');
30 @unlink(__DIR__ . '/tar_makebz2.phar.tar');
31 @unlink(__DIR__ . '/tar_makebz2.phar.tar.bz2');
32 @unlink(__DIR__ . '/tar_makebz2_b.phar.tar.bz2');

Completed in 25 milliseconds

12345678910>>...59