Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: concurrent write of bootstrap/cache/packages.php (laravel#25012)
When there is no bootstrap/cache/*.php, the php process will attemp to build bootstrap/cache/packages.php, bootstrap/cache/services.php and etc. If there are two or more php process doing the same thing, it is possible for one of the process to read a *dirty* bootstrap/cache/packages.php (not yet finish writing by another process). The solution add write and read lock to prevent read an *dirty* packages.php and write a wrong services.php file.
- Loading branch information