srchub

srchub Commit Details


Date:2015-09-03 20:40:47 (9 years 3 months ago)
Author:Natalie Adams
Branch:master
Commit:1c563f340b393347ede2e5ac917499ae1d946112
Parents: 90ce6fda4cea41943f75e7e0e6794f28fbaf0b49
Message:Issue 102: Potential race condition when compiling templates

Changes:

File differences

pluf/src/Pluf/Template.php
144144
145145
146146
147
147
148
148149
149150
151
150152
151153
152154
rewind($fp);
fwrite($fp, $this->template_content, strlen($this->template_content));
// Lock released, read access is possible
flock($fp, LOCK_UN);
flock($fp, LOCK_UN);
fflush($fp);
fclose($fp);
@chmod($this->compiled_template, 0777);
clearstatcache();
return true;
} else {
throw new Exception(sprintf(__('Cannot write the compiled template: %s'), $this->compiled_template));

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05721s using 20 queries.