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.1735291439',
(int) 1 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735292103',
(int) 2 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735292653',
(int) 3 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735293286',
(int) 4 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735293860',
(int) 5 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735294558',
(int) 6 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735295156',
(int) 7 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735295872',
(int) 8 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735296339',
(int) 9 => '/home/uniform1.com/htdocs/cakephp2/app/tmp/logs/sql.log.1735296960'
)
$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::getItemStockInfo() - APP/Model/Item.php, line 4793
require_once - /home/uniform1sp.com/htdocs/common/item/mod_item.php, line 267
[main] - /home/uniform1sp.com/htdocs/mod_rewrite.php, line 47