Disable parallel processing on phar
This commit is contained in:
parent
1e259ae6c8
commit
6e366c5c08
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user