Skip to content

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

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions