From 802d4bcf08ae99e5729757f5d0d2d742db5c7902 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 30 May 2014 20:00:01 +0400 Subject: [PATCH] =?UTF-8?q?ob=5Fstart,=20ob=5Fclean=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=86=D0=B5=D1=81=D1=81=D0=B0=20pil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Upload.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Upload.class.php b/Upload.class.php index 4b8403d..a5e46c1 100644 --- a/Upload.class.php +++ b/Upload.class.php @@ -124,12 +124,12 @@ abstract class Upload . $pil_options . ' ' . $tmp_file_path . ' ' . $file_path; - //ob_start(); + ob_start(); passthru( 'exec 2>&1; ' . $command, $code ); if ($code !== 0) { throw new ErrorException('Command PYTHON_PIL_RESIZE exit with code "' . $code . '": ' . $command . PHP_EOL . 'Std out: ' . ob_get_clean() ); } - // ob_clean(); + ob_clean(); } else { if ($width || $height) { if (!(ImageVariant::getIsClass($image)) && Image::getIsSubClass($image)) {