1--TEST--
2link not working properly on Windows
3--CREDITS--
4Venkat Raman Don
5--SKIPIF--
6<?php
7if(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" ?>';
15file_put_contents($filename, $content);
16$linkname = __DIR__ . '\\a_link.php';
17link("$filename", "$linkname");
18var_dump(file_exists("$linkname"));
19$linkcontent = file_get_contents($linkname);
20var_dump($content == $linkcontent);
21unlink($filename);
22unlink($linkname);
23?>
24--EXPECT--
25bool(true)
26bool(true)
27