Commit:    1aab433e8668f8b737f2ad011c00ebf2b61fd58d
Author:    Anatol Belski <[email protected]>         Tue, 5 Feb 2019 20:19:20 -0800
Parents:   f4687db1594b518d25a23ab91067af9c384eaecc
Branches:  master

Link:       
http://git.php.net/?p=web/windows.git;a=commitdiff;h=1aab433e8668f8b737f2ad011c00ebf2b61fd58d

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;
        }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to