Home
last modified time | relevance | path

Searched refs:basename (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/PHP-7.3/ext/standard/tests/file/
H A Dbasename_variation1-win32.phpt2 basename() with various inputs
49 var_dump(basename($input));
57 basename for path A:/foo is:
59 basename for path A:/foo/ is:
61 basename for path A:/foo\ is:
77 basename for path Z:/foo is:
79 basename for path Z:/foo/ is:
81 basename for path Z:/foo\ is:
97 basename for path A:\foo is:
99 basename for path A:\foo/ is:
[all …]
H A Dbasename_variation1.phpt2 basename() with various inputs
49 var_dump(basename($input));
57 basename for path A:/foo is:
59 basename for path A:/foo/ is:
61 basename for path A:/foo\ is:
77 basename for path Z:/foo is:
79 basename for path Z:/foo/ is:
81 basename for path Z:/foo\ is:
97 basename for path A:\foo is:
99 basename for path A:\foo/ is:
[all …]
H A Dbasename_variation2-win32.phpt6 die('skip Windows only basename tests');
44 var_dump(basename($path, $suffix));
52 basename for path foo, supplying suffix .bar is:
54 basename for path foo, supplying suffix .b is:
56 basename for path foo, supplying suffix . is:
58 basename for path foo, supplying suffix is:
60 basename for path foo, supplying suffix foo is:
68 basename for path foo, supplying suffix / is:
70 basename for path foo, supplying suffix \ is:
76 basename for path foo/, supplying suffix . is:
[all …]
H A Dbasename_variation2.phpt44 var_dump(basename($path, $suffix));
52 basename for path foo, supplying suffix .bar is:
54 basename for path foo, supplying suffix .b is:
56 basename for path foo, supplying suffix . is:
58 basename for path foo, supplying suffix is:
60 basename for path foo, supplying suffix foo is:
68 basename for path foo, supplying suffix / is:
70 basename for path foo, supplying suffix \ is:
76 basename for path foo/, supplying suffix . is:
78 basename for path foo/, supplying suffix is:
[all …]
H A Dbasename_error.phpt2 Test basename() function : error conditions
5 /* Prototype : string basename(string path [, string suffix])
11 echo "*** Testing basename() : error conditions ***\n";
14 echo "\n-- Testing basename() function with Zero arguments --\n";
15 var_dump( basename() );
17 //Test basename with one more than the expected number of arguments
22 var_dump( basename($path, $suffix, $extra_arg) );
27 *** Testing basename() : error conditions ***
29 -- Testing basename() function with Zero arguments --
31 Warning: basename() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dbasename_bug66395_variation2-win32.phpt2 basename bug #66395 check drive traversing and NTFS streams
7 echo basename("y:") . "\n";
8 echo basename("y:/") . "\n";
9 echo basename("notdriveletter:file.txt") . "\n";
10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n";
11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n";
12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n";
15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n";
16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n";
18 echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n";
[all …]
H A Dbasename_bug66395-win32.phpt2 basename bug #66395
4 <?php if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip Windows only basename tests'); } ?>
7 echo basename("c:file.txt") . "\n";
8 echo basename("d:subdir\\file.txt") . "\n";
9 echo basename("y:file.txt", ".txt") . "\n";
10 echo basename("notdriveletter:file.txt") . "\n";
H A Dpathinfo_basic1-win32.phpt82 ["basename"]=>
95 ["basename"]=>
108 ["basename"]=>
121 ["basename"]=>
134 ["basename"]=>
147 ["basename"]=>
160 ["basename"]=>
173 ["basename"]=>
186 ["basename"]=>
199 ["basename"]=>
[all …]
H A Dpathinfo_basic1.phpt82 ["basename"]=>
95 ["basename"]=>
108 ["basename"]=>
121 ["basename"]=>
134 ["basename"]=>
147 ["basename"]=>
160 ["basename"]=>
173 ["basename"]=>
186 ["basename"]=>
199 ["basename"]=>
[all …]
H A Dbasename-win32.phpt2 basename
8 die('skip Windows only basename tests');
14 * proto string basename(string path [, string suffix])
105 var_dump( basename($path[0]) );
107 var_dump( basename($path[0], $path[1]) );
120 var_dump( basename() );
127 var_dump( basename( array("string\\bar") ) );
130 var_dump( basename( $object, "bar" ) );
131 var_dump( basename( $object ) );
132 var_dump( basename( $object, $object ) );
[all …]
H A Dpathinfo_variaton.phpt101 ["basename"]=>
114 ["basename"]=>
127 ["basename"]=>
140 ["basename"]=>
155 ["basename"]=>
166 ["basename"]=>
179 ["basename"]=>
192 ["basename"]=>
221 ["basename"]=>
234 ["basename"]=>
[all …]
H A Dpathinfo_basic.phpt78 ["basename"]=>
93 ["basename"]=>
108 ["basename"]=>
123 ["basename"]=>
138 ["basename"]=>
153 ["basename"]=>
168 ["basename"]=>
183 ["basename"]=>
198 ["basename"]=>
213 ["basename"]=>
[all …]
H A Dpathinfo_basic2-win32.phpt61 ["basename"]=>
74 ["basename"]=>
89 ["basename"]=>
104 ["basename"]=>
119 ["basename"]=>
134 ["basename"]=>
149 ["basename"]=>
164 ["basename"]=>
177 ["basename"]=>
192 ["basename"]=>
[all …]
H A Dpathinfo_basic2.phpt61 ["basename"]=>
76 ["basename"]=>
91 ["basename"]=>
106 ["basename"]=>
121 ["basename"]=>
136 ["basename"]=>
151 ["basename"]=>
166 ["basename"]=>
179 ["basename"]=>
194 ["basename"]=>
[all …]
/PHP-7.3/ext/standard/tests/strings/
H A Dbasename.phpt2 basename() function
6 var_dump(basename("bar"));
7 var_dump(basename("/foo/bar"));
8 var_dump(basename("/bar"));
11 var_dump(basename("bar/"));
12 var_dump(basename("/foo/bar/"));
13 var_dump(basename("/bar/"));
16 var_dump(basename("bar.gz", ".gz"));
18 var_dump(basename("/bar.gz", ".gz"));
26 var_dump(basename("/.gz", ".gz"));
[all …]
H A Dbasename_error.phpt2 Test basename() function : error conditions
5 /* Prototype: string basename ( string $path [, string $suffix] );
12 var_dump( basename() );
15 var_dump( basename("/var/tmp/bar.gz", ".gz", ".gz") );
19 var_dump( basename( array("string/bar") ) );
20 var_dump( basename( array("string/bar"), "bar" ) );
21 var_dump( basename( "bar", array("string/bar") ) );
22 var_dump( basename( $object, "bar" ) );
23 var_dump( basename( $object ) );
24 var_dump( basename( $object, $object ) );
[all …]
H A Dpathinfo.phpt33 ["basename"]=>
41 ["basename"]=>
51 ["basename"]=>
61 ["basename"]=>
69 ["basename"]=>
79 ["basename"]=>
89 ["basename"]=>
/PHP-7.3/ext/phar/tests/tar/
H A Dphar_convert_phar.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
12 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar';
13 $fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.3.phar';
41 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
42 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
43 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar');
44 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar');
45 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar');
H A Dbignames.phpt9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar';
10 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.tar';
11 $fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.3.tar';
12 $fname4 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.4.tar';
46 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar');
47 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.tar');
48 @unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.tar');
49 @unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.4.tar');
H A Dphar_convert_phar2.phpt12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
13 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '2.phar';
43 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
44 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.gz');
45 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
46 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.gz');
47 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar');
H A Dphar_convert_phar3.phpt12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
13 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '2.phar';
43 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.bz2');
44 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar');
45 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
46 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
47 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.bz2');
/PHP-7.3/ext/phar/tests/zip/
H A Dphar_setsignaturealgo2.phpt14 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
15 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
16 $fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.3.phar.zip';
17 $fname4 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.4.phar.zip';
18 $fname5 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.5.phar.zip';
19 $fname6 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.6.phar.zip';
70 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
71 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
72 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip');
73 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.4.phar.zip');
[all …]
H A Dphar_convert_phar.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
12 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '2.phar';
13 $fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.3.phar';
41 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
42 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
43 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar');
44 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar');
/PHP-7.3/ext/phar/tests/
H A Dphar_decompress.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
12 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '2.phar.gz';
52 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');
H A Dcreate_new_phar.phpt11 file_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/a.p…
13 include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/a.php';
16 file_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/$fi…
18 include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/$fileName.php…
23 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>

Completed in 77 milliseconds

12345678910>>...15