Skip to content

tmp directory not configurable #600

@nhalle

Description

@nhalle

Hi,

I was trying to rewrite the tmp directory so tmp files could be sent to my app's tmp directory, but tmp files are currently configured to be saved at the root './' $pFilename = @tempnam('./', 'phppttmp') https://github.com/PHPOffice/PHPPresentation/blob/a352768c8c63722d877862e07fe8a27cf5fdffd2/src/PhpPresentation/Writer/ODPresentation.php#L8

It seems that there is existing functionality to customize the $this->diskCachingDirector as the tmp directory https://github.com/PHPOffice/PHPPresentation/blob/develop/src/PhpPresentation/Writer/ODPresentation.php#L16

Could we alternatively bring in this functionality and set $pFilename = @tempnam($this->diskCachingDirector, 'phppttmp') ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions