DevHeads.net

com web/windows: First include, then release lock: include/listing.php

Link: <a href="http://git.php.net/?p=web/windows.git;a=commitdiff;h=1aab433e8668f8b737f2ad011c00ebf2b61fd58d" title="http://git.php.net/?p=web/windows.git;a=commitdiff;h=1aab433e8668f8b737f2ad011c00ebf2b61fd58d">http://git.php.net/?p=web/windows.git;a=commitdiff;h=1aab433e8668f8b737f...</a>

Log:
First include, then release lock

Changed paths:
M include/listing.php

Diff:
diff --git a/include/listing.php b/include/listing.php
index 08625b0..b061eac 100644
--- a/include/listing.php
+++ b/include/listing.php
@@ -90,9 +90,9 @@ function generate_listing($path, $nmode) {
flock($lck, LOCK_EX);

if (file_exists($path . '/cache.info')) {
+ include $path . '/cache.info';
flock($lck, LOCK_UN);
fclose($lck);
- include $path . '/cache.info';
return $releases;
}