Skip to content

error_log php.ini cannot be unset when open_basedir is configured #19480

Closed

Description

@mvorisek

Description

The following code:

<?php

ini_set('error_log', null);
// or
ini_set('error_log', '')

Resulted in this output:

ini_set(): open_basedir restriction in effect. File() is not within the allowed path(s): (/builds/...:/tmp)

But I expected this output instead:

no error, error_log php.ini unset/set to null as when not configured at all, null is default value according to the docs [1]

[1] https://www.php.net/manual/en/errorfunc.configuration.php

PHP Version

PHP 8.3, any

Operating System

linux, any

Activity

  1. changed the title [-]`error_log` php.ini cannot be unset with `open_basedir`[/-] [+]`error_log` php.ini cannot be unset when `open_basedir` is configured[/+] on Aug 14, 2025
  2. self-assigned this
    on Aug 15, 2025
  3. added 3 commits that reference this issue on Sep 19, 2025
    9382260
    ef9a89f
    7a1bb71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions