mirror of
https://github.com/php/php-src.git
synced 2025-01-05 02:14:08 +08:00
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fixed bug #62147 test bug - popen_pclose_basic-win32
This commit is contained in:
commit
6fb0e4a401
@ -39,7 +39,10 @@ $arr = array("ggg", "ddd", "aaa", "sss");
|
|||||||
//
|
//
|
||||||
// since we can't depend on PHP.ini being set a certain way,
|
// since we can't depend on PHP.ini being set a certain way,
|
||||||
// have to put the absolute path here.
|
// 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";
|
$newline = "\n";
|
||||||
foreach($arr as $str) {
|
foreach($arr as $str) {
|
||||||
fwrite($file_handle, (binary)$str);
|
fwrite($file_handle, (binary)$str);
|
||||||
|
Loading…
Reference in New Issue
Block a user