Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
tests /
run-test /
Delete
Unzip
Name
Size
Permission
Date
Action
bug75042-2.phpt
148
B
-rw-rw-r--
2022-10-31 11:36
bug75042-3.phpt
285
B
-rw-rw-r--
2022-10-31 11:36
bug75042.phpt
524
B
-rw-rw-r--
2022-10-31 11:36
test001.phpt
44
B
-rw-rw-r--
2022-10-31 11:36
test002.phpt
89
B
-rw-rw-r--
2022-10-31 11:36
test003.phpt
108
B
-rw-rw-r--
2022-10-31 11:36
test004.phpt
147
B
-rw-rw-r--
2022-10-31 11:36
test005.phpt
973
B
-rw-rw-r--
2022-10-31 11:36
test006.phpt
162
B
-rw-rw-r--
2022-10-31 11:36
test007.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
test008.phpt
930
B
-rw-rw-r--
2022-10-31 11:36
test008a.phpt
976
B
-rw-rw-r--
2022-10-31 11:36
test009.phpt
113
B
-rw-rw-r--
2022-10-31 11:36
test010.phpt
350
B
-rw-rw-r--
2022-10-31 11:36
test011.phpt
70
B
-rw-rw-r--
2022-10-31 11:36
test011.txt
4
B
-rw-rw-r--
2022-10-31 11:36
test012.phpt
98
B
-rw-rw-r--
2022-10-31 11:36
test012.txt
21
B
-rw-rw-r--
2022-10-31 11:36
test013.phpt
109
B
-rw-rw-r--
2022-10-31 11:36
test013.txt
29
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- dirname test --FILE-- <?php // Allow for either Win32 or Unix. $s = dirname("/foo"); // $s should be either / (Unix) or \ (Win32) function check_dirname($path) { global $s; $path1 = str_replace("%",$s,$path); $path2 = dirname($path1); $path3 = str_replace($s,"%",$path2); print "dirname($path) == $path3\n"; } check_dirname("%foo%"); check_dirname("%foo"); check_dirname("%foo%bar"); check_dirname("%"); check_dirname("...%foo"); check_dirname(".%foo"); check_dirname("foobar%%%"); check_dirname("%\0%\0%\0.%\0."); function same($a,$b) { if ($a == $b) { print "OK\n"; } else { print "FAIL $a == $b\n"; } } if ('/' == $s) { same(".",dirname("d:\\foo\\bar.inc")); same(".",dirname("c:\\foo")); same(".",dirname("c:\\")); same(".",dirname("c:")); } else { same("d:\\foo",dirname("d:\\foo\\bar.inc")); same("c:\\",dirname("c:\\foo")); same("c:\\",dirname("c:\\")); same("c:",dirname("c:")); } ?> --EXPECT-- dirname(%foo%) == % dirname(%foo) == % dirname(%foo%bar) == %foo dirname(%) == % dirname(...%foo) == ... dirname(.%foo) == . dirname(foobar%%%) == . dirname(% % % .% .) == % % % . OK OK OK OK