Skip to content

ini_get() is optimized out when the option does not exist #8466

Closed
@arnaud-lb

Description

@arnaud-lb

Description

The following code:

<?php

dl("dl_test.so");

var_dump(ini_get("test_test.long"));

Resulted in this output:

bool(false)

But I expected this output instead:

string(1) "0"

This happens when opcache is enabled.

PHP Version

PHP 8.1

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions