2009-06-03 07:56:53 +00:00
|
|
|
--TEST--
|
2009-06-03 08:31:24 +00:00
|
|
|
link not working properly on Windows
|
2009-06-03 07:56:53 +00:00
|
|
|
--CREDITS--
|
|
|
|
Venkat Raman Don
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
if(substr(PHP_OS, 0, 3) != 'WIN' ) {
|
|
|
|
die('skip windows only test');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2009-06-16 00:17:56 +00:00
|
|
|
$filename = __DIR__ . '\\a.php';
|
2009-06-03 07:56:53 +00:00
|
|
|
$content = '<?php echo "Dummy Content.\n" ?>';
|
|
|
|
file_put_contents($filename, $content);
|
2009-06-16 00:17:56 +00:00
|
|
|
$linkname = __DIR__ . '\\a_link.php';
|
|
|
|
link("$filename", "$linkname");
|
2009-06-03 07:56:53 +00:00
|
|
|
var_dump(file_exists("$linkname"));
|
|
|
|
$linkcontent = file_get_contents($linkname);
|
|
|
|
var_dump($content == $linkcontent);
|
|
|
|
unlink($filename);
|
|
|
|
unlink($linkname);
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
bool(true)
|
|
|
|
bool(true)
|