Disable parallel processing on phar

This commit is contained in:
Daniil Gentili 2018-12-27 22:05:02 +01:00
parent 1e259ae6c8
commit 6e366c5c08

View File

@ -94,7 +94,7 @@ class Magic
self::$revision = 'Revision: '.self::$revision.$latest;
}
self::$can_parallel = false;
if (php_sapi_name() === 'cli') {
if (php_sapi_name() === 'cli' && !(class_exists('\\Phar') && \Phar::running())) {
try {
$back = debug_backtrace(0);
$promise = \Amp\File\get(end($back)['file']);