Project

General

Profile

Actions

Bug #32282

closed

typo3temp/locks warning. unlink function returns warning

Added by Razakanirina almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-12-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

php unlink() function returns a warning when the file does not exist.

Obtained warning:
---
Core: Error handler (FE): PHP Warning: unlink(/.../.../typo3temp/locks/107c9b0324ec9db67812eb6af3e78732) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /usr/local/src/typo3/typo3_src-4.5.8/t3lib/class.t3lib_lock.php line 210

We should test the $this->resource variable by file_exists() php function before unlinking.

if (unlink($this->resource) == FALSE) {


Files


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #19112: unlink of non existing lockfiles generates warnings in frontendClosedMartin Kutschker2008-07-16

Actions
Related to TYPO3 Core - Bug #40420: Semaphore based locking returns warningClosed2012-08-30

Actions
Is duplicate of TYPO3 Core - Bug #24342: t3lib_lock still sometimes has a race condition on deleting locks.Closed2010-12-15

Actions
Actions

Also available in: Atom PDF