mirror of
https://github.com/danog/file.git
synced 2024-11-26 11:54:54 +01:00
Use BlockingDriver in SAPIs like Apache or FPM
This commit is contained in:
parent
169a1d1b36
commit
577bcc1f92
@ -51,6 +51,10 @@ function driver(): Driver {
|
||||
return new BlockingDriver;
|
||||
}
|
||||
|
||||
if (\PHP_SAPI !== "cli" && \PHP_SAPI !== "phpdbg") { // We don't have a binary to launch sub-processes
|
||||
return new BlockingDriver;
|
||||
}
|
||||
|
||||
if (\defined("AMP_WORKER")) { // Prevent spawning infinite workers.
|
||||
return new BlockingDriver;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user