Project

General

Profile

Actions

Bug #15794

closed

'/\' in path tempnam() path

Added by Jens Hirschfeld about 18 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-03-09
Due date:
% Done:

0%

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

Description

under windows the t3lib_div::tempnam() function retruns a path to the created tempfile with '/\' in it.
with fopen() the path could be used.
but t3lib_div::unlink_tempfile() cant delete the tempfile, because the bachslash '\' is in the path.

example:
t3lib_div::tempnam('fdf');
returns: 'D:/xampp/htdocs/dummy38/typo3temp/\fdf103.tmp'

if the backslash is removed in the path, the file could be successfully unlinked by unlink_tempfile().

Windows XP SP2
PHP Version 5.0.3
APACHE
(issue imported from #M2813)

Actions #1

Updated by Karsten Dambekalns about 18 years ago

Looks like a PHP bug to me...

Actions #2

Updated by Dmitry Dulepov over 12 years ago

  • Status changed from New to Rejected
  • Target version deleted (0)
  • TYPO3 Version changed from 3.8.1 to 4.7
  • PHP Version deleted (5)

I checked the code and from the code it does not look like we can solve it in any way on TYPO3 level. Here is the code, it is quite simple:

public static function tempnam($filePrefix) {
    return tempnam(PATH_site . 'typo3temp/', $filePrefix);
}

Actions

Also available in: Atom PDF