1
0
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:
Niklas Keller 2017-07-21 08:32:23 +02:00
parent 169a1d1b36
commit 577bcc1f92

View File

@ -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;
}