mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Use IS_WINDOWS
This commit is contained in:
parent
10c420f84a
commit
718fc4cefd
1 changed files with 1 additions and 5 deletions
|
@ -2109,11 +2109,7 @@ TEST $file
|
|||
if (array_key_exists('INI', $section_text)) {
|
||||
$section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
|
||||
$section_text['INI'] = str_replace('{TMP}', sys_get_temp_dir(), $section_text['INI']);
|
||||
if (PHP_OS_FAMILY === 'Windows') {
|
||||
$replacement = '"' . PHP_BINARY . ' -r \"while ($in = fgets(STDIN)) echo $in;\" > $1"';
|
||||
} else {
|
||||
$replacement = 'tee $1 >/dev/null';
|
||||
}
|
||||
$replacement = IS_WINDOWS ? '"' . PHP_BINARY . ' -r \"while ($in = fgets(STDIN)) echo $in;\" > $1"' : 'tee $1 >/dev/null';
|
||||
$section_text['INI'] = preg_replace('/{MAIL:(\S+)}/', $replacement, $section_text['INI']);
|
||||
settings2array(preg_split("/[\n\r]+/", $section_text['INI']), $ini_settings);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue