Commit:    d4d36fba28a215a1f49cecf354668c010bf7a24e
Author:    Matt Ficken <mattfic...@php.net>         Fri, 25 May 2012 09:53:51 
+0200
Committer: Anatoliy Belsky <a...@php.net>      Fri, 25 May 2012 09:53:51 +0200
Parents:   8fc9df3f67dc35bff019f538934322583fd5fefd
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=d4d36fba28a215a1f49cecf354668c010bf7a24e

Log:
Fixed bug #62147 test bug - popen_pclose_basic-win32

Bugs:
https://bugs.php.net/62147

Changed paths:
  M  ext/standard/tests/file/popen_pclose_basic-win32.phpt


Diff:
diff --git a/ext/standard/tests/file/popen_pclose_basic-win32.phpt 
b/ext/standard/tests/file/popen_pclose_basic-win32.phpt
index b5c7256..6351d86 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);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to