#5541: File locking broken with File based cache
-------------------------------+--------------------------------------------
Reporter: timr | Owner: nate
Type: Bug | Status: new
Priority: Medium | Milestone: 1.2.x.x
Component: File System | Version: RC3
Severity: Normal | Resolution:
Keywords: | Php_version: n/a
Cake_version: 1.2.0.7692 RC3 |
-------------------------------+--------------------------------------------
Changes (by the_undefined):
* owner: => nate
Comment:
Nate: Disregard my first diff, take a look at file2.diff. Basically the
only change I made to fix this issue is to not use file_get_contents if a
lock is requested. I also added $this->close() statement for that scenario
since otherwise consecutive read operations using the $bytes parameter
would fail as the old file handler would be re-used.
Other then that I refactored the function to the return home early
approach. If you don't like it let me know and I'll get you a patch
without the refactoring. I'm not committing this yet because the File
class could potentially screw with lots of things so please take a look :
). (Unit tests of course all still pass)
--
Ticket URL: <https://trac.cakephp.org/ticket/5541#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---