Get the stderr output
bool $asResource Set to TRUE to get an fopen resource:
string|resource|null
public function getStderr($asResource = false) {
$stderr = $this
->getOptions()
->get(CURLOPT_STDERR);
if (!$stderr) {
return null;
}
if ($asResource) {
return $stderr;
}
fseek($stderr, 0);
$e = stream_get_contents($stderr);
fseek($stderr, 0, SEEK_END);
return $e;
}