Project

General

Profile

Actions

Bug #20191

closed

t3lib_div::rmdir() causes PHP error instead of returning false

Added by Saskia Metzler over 15 years ago. Updated about 11 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

According to the function's documentation,

" * @return boolean true if @rmdir went well!"

the expected behavior is that t3lib_div::rmdir() returns false in case anything went wrong.
Actually, as @rmdir() is not used but rmdir(), a PHP error occurs if for example write permissions were missing.

I propose also to use the @ for unlink() which is used within the function and might also produce an error message. Ditto for opendir() and readdir().

(This issue applies to version 4.2 as well as 4.3.)

(issue imported from #M10703)

Actions

Also available in: Atom PDF