jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minify_Cache_File write empty files #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On at least one server tested, Minify 2.0.2b writes only zero-length 
files. Removing the LOCK_EX option from file_put_contents() fixed the 
issue, but I don't know why.

Both my test/prod are similar Apache/mod_php setups on Red Hat 5, but only 
the production had the issue.

Original issue reported on code.google.com by mrclay....@gmail.com on 23 Jul 2008 at 7:50

GoogleCodeExporter commented 9 years ago
Removed LOCK_EX in R160. the file contents is still checked after writing and 
deleted if not valid, so the exclusive lock isn't really needed.

Original comment by mrclay....@gmail.com on 29 Jul 2008 at 4:14