(php8 compat) Minor issue if phar failes to extract
This commit is contained in:
parent
c8477a34b2
commit
4193be829a
|
@ -1582,7 +1582,10 @@ class Client
|
||||||
) {
|
) {
|
||||||
// When PharData failes because of no space left on device
|
// When PharData failes because of no space left on device
|
||||||
// a PHP Notice is received instead of a PharData\Exception.
|
// a PHP Notice is received instead of a PharData\Exception.
|
||||||
throw new \Exception(error_get_last());
|
$err = error_get_last();
|
||||||
|
if ($err !== null) {
|
||||||
|
throw new \Exception($err['message']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
error_reporting($er);
|
error_reporting($er);
|
||||||
|
|
Loading…
Reference in New Issue