DDC-716 - Added LOCK_EX constant to file_put_contents to avoid file corruption on concurrent access when auto-generating proxy classes is set to TRUE
This commit is contained in:
parent
0be6b3fd85
commit
7a5ab94780
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class ProxyFactory
|
|||
|
||||
$file = str_replace($placeholders, $replacements, $file);
|
||||
|
||||
file_put_contents($fileName, $file);
|
||||
file_put_contents($fileName, $file, LOCK_EX);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue