Browse Source

Redirect stderr out to stdout with use pil.

master
Alexander Demidov 11 years ago
parent
commit
e905878644
  1. 5
      Upload.class.php

5
Upload.class.php

@ -124,9 +124,10 @@ abstract class Upload
. $pil_options
. ' ' . $tmp_file_path
. ' ' . $file_path;
passthru( $command, $code );
//ob_start();
passthru( 'exec 2>&1; ' . $command, $code );
if ($code !== 0) {
throw new ErrorException('Command PYTHON_PIL_RESIZE: ' . $command );
throw new ErrorException('Command PYTHON_PIL_RESIZE exit with code "' . $code . '": ' . $command . PHP_EOL . 'Std out: ' . ob_get_clean() );
}
// ob_clean();
} else {

Loading…
Cancel
Save