Code Context $filesToDelete = count($files) - $this->_config['rotate'];
while ($filesToDelete > 0) {
unlink(array_shift($files));
$filename = 'sql.log'
$filepath = '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log'
$result = true
$files = array(
(int) 0 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744188805',
(int) 1 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744189408',
(int) 2 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744189783',
(int) 3 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744190301',
(int) 4 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744190985',
(int) 5 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744191578',
(int) 6 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744192120',
(int) 7 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744192704',
(int) 8 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744193136',
(int) 9 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1744193638'
)
$filesToDelete = (int) 1
unlink - [internal], line ??
FileLog::_rotateFile() - CORE/Cake/Log/Engine/FileLog.php, line 212
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 137
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 445
CakeObject::log() - CORE/Cake/Core/CakeObject.php, line 162
AppModel::find() - APP/Model/AppModel.php, line 42
Item::getItem() - APP/Model/Item.php, line 2254
Item::getItemByCodeFirst() - APP/Model/Item.php, line 2218
require_once - /home/uniform1sp.com/htdocs/common/item/mod_item.php, line 366
[main] - /home/uniform1sp.com/htdocs/mod_rewrite.php, line 47