summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ficken <mattficken@php.net>2012-05-25 09:53:51 +0200
committerAnatoliy Belsky <ab@php.net>2012-05-25 09:53:51 +0200
commitd4d36fba28a215a1f49cecf354668c010bf7a24e (patch)
tree074be2a321d1f3e5eb0284b380346d4c57218ab8
parent8fc9df3f67dc35bff019f538934322583fd5fefd (diff)
downloadphp-git-d4d36fba28a215a1f49cecf354668c010bf7a24e.tar.gz
Fixed bug #62147 test bug - popen_pclose_basic-win32
-rw-r--r--ext/standard/tests/file/popen_pclose_basic-win32.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/tests/file/popen_pclose_basic-win32.phpt b/ext/standard/tests/file/popen_pclose_basic-win32.phpt
index b5c72560d8..6351d866f3 100644
--- a/ext/standard/tests/file/popen_pclose_basic-win32.phpt
+++ b/ext/standard/tests/file/popen_pclose_basic-win32.phpt
@@ -39,7 +39,10 @@ $arr = array("ggg", "ddd", "aaa", "sss");
//
// since we can't depend on PHP.ini being set a certain way,
// have to put the absolute path here.
-$file_handle = popen("/windows/system32/sort", "w");
+
+$sysroot = exec('echo %SYSTEMROOT%');
+
+$file_handle = popen("$sysroot/system32/sort", "w");
$newline = "\n";
foreach($arr as $str) {
fwrite($file_handle, (binary)$str);