php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch popen_pclose_basic-win32.phpt for Testing related Bug #62147

Patch version 2012-05-24 23:10 UTC

Return to Bug #62147 | Download this patch
Patch Revisions:

Developer: mattficken

--- a/ext/standard/tests/file/popen_pclose_basic-win32.phpt	Thu May 24 08:35:19 2012
+++ b/ext/standard/tests/file/popen_pclose_basic-win32.phpt	Thu May 24 14:11:39 2012
@@ -41,3 +41,6 @@
 // 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";
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 06:01:27 2019 UTC