|
Joomla! News -
JoomlaCode
|
|
Saturday, 11 February 2012 19:30 |
|
FYI
The file "libraries\joomla\cache\storage\file.php" in J1.7.x contains a fonction called lock() (lines 242 till 280). The function use a fopen statement to open the cached file. This, without first checking if the file exists.
On my development machine, Apache raise a warning in line 250 when the file doesn't exists.
Proposed solution : just add a JFile::exists().
Original code
-------------
public function lock($id, $group, $locktime){
$returning = new stdClass;
$returning->locklooped = false;
$looptime = $locktime * 10;
$path = $this->_getFilePath($id, $group);
$_fileopen = @fopen($path, "r+b");
//Replace the line above with
// if (JFile::exists($path)) $_fileopen = @fopen($path, "r+b");
if ($_fileopen) {
$data_lock = @flock($_fileopen, LOCK_EX);
} else {
$data_lock = false;
}
[...]
return $returning;
}


read full article
|
|
|
Joomla! News -
Joomla! Community Magazine
|
|
Saturday, 11 February 2012 19:30 |
|
Joomla! 3.0 is scheduled to be released in September 2012. It will include major new core features built on top of our rapidly advancing framework. But in order to apply that power effectively, everything has to be tied together in a simple and intuitive way that will result in a great user experience (UX). In this interview with longtime community contributor and Joomla! User Experience team member Kyle Ledbetter, you'll learn about his UX vision for Joomla! 3.0 and the high level roadmap for how we will get there.
read full article
|
|
Joomla! News -
Official Events Calendar
|
|
Saturday, 11 February 2012 19:30 |
When: Sat Feb 25, 2012 to Sun Feb 26, 2012
Where: Bangkok
Event Status: confirmed
read full article
|
|
|
Joomla! News -
JoomlaCode
|
|
Saturday, 11 February 2012 19:00 |
|
FYI
The file "libraries\joomla\cache\storage\file.php" in J1.7.x contains a fonction called lock() (lines 242 till 280). The function use a fopen statement to open the cached file. This, without first checking if the file exists.
On my development machine, Apache raise a warning in line 250 when the file doesn't exists.
Proposed solution : just add a JFile::exists().
Original code
-------------
public function lock($id, $group, $locktime){
$returning = new stdClass;
$returning->locklooped = false;
$looptime = $locktime * 10;
$path = $this->_getFilePath($id, $group);
$_fileopen = @fopen($path, "r+b");
//Replace the line above with
// if (JFile::exists($path)) $_fileopen = @fopen($path, "r+b");
if ($_fileopen) {
$data_lock = @flock($_fileopen, LOCK_EX);
} else {
$data_lock = false;
}
[...]
return $returning;
}


read full article
|
|
|
|
|
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
|