Code Monkey home page Code Monkey logo

Comments (1)

dorantor avatar dorantor commented on July 3, 2024

Sorry for late reply - for some reason didn't received notification to my mailbox.

What you're saying is very strange, because this lib uses flock which provides, quoting:

advisory file locking which means all accessing programs have to use the same way of locking or it will not work

and also it means that lock is informative, not restrictive. So even if it's "locked" it could be read/written by anybody who doesn't want to respect locking. As you can see, you should always be able to read "locked" file same way as if it's not "locked". Basically "lock" is a way to communicate between separate and independent processes and share resources(files in this case) which can be used only in "single-threaded" mode. Most common case is you want to allow only one script/process to be able to write to the file at a time, and any amount of scripts/processes to be able to read from the file.

If you can reproduce it on a stable basis, could you please provide context(OS, PHP version, file system and so on), so I could reproduce it and investigate?

from filelock.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.