1
0
Fork 0

Works on Linux when proc_open misses

pull/1341/head
Benjamin Eberlei 2012-11-19 13:51:24 +01:00
parent 5e12da0203
commit fbf9a27132
1 changed files with 4 additions and 4 deletions

View File

@ -152,11 +152,11 @@ class Filesystem
return; return;
} }
if (defined('PHP_WINDOWS_VERSION_BUILD')) { if (!function_exists('proc_open')) {
if (!function_exists('proc_open')) { return $this->copyThenRemove($source, $target);
return $this->copyThenRemove($source, $target); }
}
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
// Try to copy & delete - this is a workaround for random "Access denied" errors. // Try to copy & delete - this is a workaround for random "Access denied" errors.
$command = sprintf('xcopy %s %s /E /I /Q', escapeshellarg($source), escapeshellarg($target)); $command = sprintf('xcopy %s %s /E /I /Q', escapeshellarg($source), escapeshellarg($target));
if (0 === $this->processExecutor->execute($command)) { if (0 === $this->processExecutor->execute($command)) {