1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Use blocking driver on Windows

This commit is contained in:
Aaron Piotrowski 2017-06-23 17:47:32 -05:00
parent ad309f0cd2
commit edc6c097c2
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -42,6 +42,10 @@ function driver(): Driver {
return new EioDriver;
}
if (\strncasecmp(\PHP_OS, "WIN", 3) === 0) {
return new BlockingDriver;
}
return new ParallelDriver;
}