[Console] Check for existence of proc_open to fix #4338

cs fix
This commit is contained in:
David Windell 2012-05-21 11:40:20 +01:00
parent 1407f112fc
commit 0a3dd0fe1e

View File

@ -921,6 +921,10 @@ class Application
*/
private function getSttyColumns()
{
if (!function_exists('proc_open')) {
return;
}
$descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
$process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true));
if (is_resource($process)) {