Issue Bug Closed

#32282typo3temp/locks warning. unlink function returns warning

Razakanirina 12/03/11, 20:42 updated 10/02/18, 12:19

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) [function.unlink]: 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) {

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.