Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-5.3: Fix bug 61746 Failing tests in ext/standard/tests/file/windows_links/*
- Loading branch information
Showing
5 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
function get_sysroot() { | ||
// usually c:\\windows, but not always | ||
return exec('echo %SYSTEMROOT%'); | ||
} | ||
|
||
function get_junction(){ | ||
// junction.exe isn't included with Windows | ||
// its a sysinternals tool for working with filesystem links | ||
// see: http://technet.microsoft.com/en-us/sysinternals/bb896768 | ||
|
||
// install somewhere that is on %path% or added to %path% | ||
return "junction.exe"; | ||
} | ||
|
||
function get_mountvol() { | ||
$sysroot = get_sysroot(); | ||
|
||
return "$sysroot\\System32\\mountvol.exe"; | ||
} | ||
|
||
?> |