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 #1

Updated by Oliver Hader over 15 years ago

In TYPO3 4.3 this will be caught by error-/exception handling in future...

Actions #2

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF