/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
file
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/file/link_win32.phpt
--TEST-- link not working properly on Windows --CREDITS-- Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { die('skip windows only test'); } ?> --FILE-- <?php $filename = __DIR__ . '\\a.php'; $content = '<?php echo "Dummy Content.\n" ?>'; file_put_contents($filename, $content); $linkname = __DIR__ . '\\a_link.php'; link("$filename", "$linkname"); var_dump(file_exists("$linkname")); $linkcontent = file_get_contents($linkname); var_dump($content == $linkcontent); unlink($filename); unlink($linkname); ?> --EXPECT-- bool(true) bool(true)
Copyright ©2k19 -
Hexid
|
Tex7ure