From 0a3dd0fe1e891725e9cb632ff9165d4f3104e37d Mon Sep 17 00:00:00 2001 From: David Windell Date: Mon, 21 May 2012 11:40:20 +0100 Subject: [PATCH] [Console] Check for existence of proc_open to fix #4338 cs fix --- src/Symfony/Component/Console/Application.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index e608c2caa1..d8cac26f27 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -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)) {