Prevent line wrapping in smbclient

This commit is contained in:
Robin Appelman 2014-08-24 14:19:21 +02:00
commit c63516eaed
2 changed files with 4 additions and 4 deletions

View file

@ -30,13 +30,14 @@ class RawConnection {
2 => array('pipe', 'w'), // child writes to stderr
3 => array('pipe', 'r'), // child reads from fd#3
4 => array('pipe', 'r'), // child reads from fd#4
5 => array('pipe', 'w') // child writes to fd#5
5 => array('pipe', 'w') // child writes to fd#5
);
setlocale(LC_ALL, Server::LOCALE);
$env = array_merge($env, array(
'CLI_FORCE_INTERACTIVE' => 'y', // Needed or the prompt isn't displayed!!
'LC_ALL' => Server::LOCALE,
'LANG' => Server::LOCALE
'LANG' => Server::LOCALE,
'COLUMNS' => 8192 // prevent smbclient from line-wrapping it's output
));
$this->process = proc_open($command, $descriptorSpec, $this->pipes, '/', $env);
if (!$this->isValid()) {

View file

@ -8,8 +8,6 @@
namespace Icewind\SMB\Test;
use Icewind\SMB\FileInfo;
use Icewind\SMB\IFileInfo;
use Icewind\SMB\IShare;
abstract class AbstractShare extends \PHPUnit_Framework_TestCase {
/**
@ -44,6 +42,7 @@ abstract class AbstractShare extends \PHPUnit_Framework_TestCase {
array("single'quote'"),
array('日本語'),
array('url %2F +encode'),
array('a somewhat longer filename than the other with more charaters as the all the other filenames'),
array('$as#d€££Ö€ßœĚęĘĞĜΣΥΦΩΫ')
);
}