Annotation of embedaddon/php/ext/standard/tests/file/link_win32.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: link not working properly on Windows
3: --CREDITS--
4: Venkat Raman Don
5: --SKIPIF--
6: <?php
7: if(substr(PHP_OS, 0, 3) != 'WIN' ) {
8: die('skip windows only test');
9: }
10: ?>
11: --FILE--
12: <?php
13: $filename = __DIR__ . '\\a.php';
14: $content = '<?php echo "Dummy Content.\n" ?>';
15: file_put_contents($filename, $content);
16: $linkname = __DIR__ . '\\a_link.php';
17: link("$filename", "$linkname");
18: var_dump(file_exists("$linkname"));
19: $linkcontent = file_get_contents($linkname);
20: var_dump($content == $linkcontent);
21: unlink($filename);
22: unlink($linkname);
23: ?>
24: --EXPECT--
25: bool(true)
26: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>