Skip to content

sys tmp dir left over files #159

Description

@thomaslauria

$f = fopen(tempnam(sys_get_temp_dir(), "fnt"), "rb+");

That code leads to left over files under sys tmp dir - what might be a problem under docker where no systemd is cleaning up.

Proposed fix:
Unlink directly after fopen - works at least under linux since the file handle is kept as long as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions