Skip to content

[Bug]: ddtrace overrides php error log permissions #2563

@klj613

Description

@klj613

Bug report

I currently set php_admin_value[error_log] = /path/to/error.log in my FPM configuration and have the permissions on the file as 0600.

I've noticed when ddtrace logs to the php error log file it changes the permissions to 0666 unexpectedly. Upon a quick look I have found https://github.com/DataDog/dd-trace-php/pull/2528/files and unsure why permissions 0666 is required.

PHP version

8.0.30

Tracer or profiler version

0.98.1

Installed extensions

No response

Output of phpinfo()

No response

Upgrading from

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions