Project

General

Profile

Actions

Task #44999

closed

swiftmailer using sys_get_temp_dir

Added by Arno Dudek almost 12 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-01-31
Due date:
% Done:

0%

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

Description

swiftmailer using sys_get_temp_dir to get the /tmp directory. This will return /tmp at my host but it will be something like /home/.sites/123/site132/tmp

A comment on PHP site:

… This behaviour is inconsistent across systems, so you have keep an eye on it.

This function does not account for virtualhost-specific modifications to the temp path and/or open_basedir:

http://php.net/sys_get_temp_dir

A solution will be to change the file typo3/contrib/swiftmailer/preferences.php and use ini_get('upload_tmp_dir') instead of sys_get_temp_dir()

or making a fall back of both.

Thanks!

Actions #1

Updated by Christian Kuhn almost 12 years ago

looks like that was fixed in the swiftmailer package on github already ...

Actions #2

Updated by Jigal van Hemert almost 12 years ago

It seems rather difficult to convince RMs to ship updated contributed packages :-(

Actions #3

Updated by Thorsten Kahler almost 12 years ago

  • Status changed from New to Accepted

@Christian: Could you please provide a link?

Actions #4

Updated by Mathias Brodala about 11 years ago

Thorsten Kahler wrote:

@Christian: Could you please provide a link?

Maybe this one:

https://github.com/swiftmailer/swiftmailer/commit/162b5d01146a59a38b9022a0bf9a06f0e24a2b8f

Actions #5

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from Accepted to Closed
Actions #6

Updated by Guillaume Drouin almost 8 years ago

  • TYPO3 Version changed from 4.7 to 6.2

I have the same problem in typo3 6.2

in /contrib/swiftmailer/preferences.php

->setTempDir(sys_get_temp_dir()) should be ->setTempDir(ini_get('upload_tmp_dir')) to have the complete directory. Else the directory can't be created there.

/contrib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php

at the line 277
if (!mkdir($cacheDir)) {

Actions #7

Updated by Guillaume Drouin almost 8 years ago

  • TYPO3 Version changed from 6.2 to 4.7
Actions

Also available in: Atom PDF