Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
arnaud-lb opened this issue Apr 29, 2022 · 0 comments · Fixed by #8507
Closed

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

arnaud-lb opened this issue Apr 29, 2022 · 0 comments · Fixed by #8507

Comments

@arnaud-lb
Copy link
Member

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

arnaud-lb added a commit to arnaud-lb/php-src that referenced this issue Apr 29, 2022
arnaud-lb added a commit to arnaud-lb/php-src that referenced this issue Apr 29, 2022
arnaud-lb added a commit that referenced this issue May 13, 2022
…mpilation (#8507)

The entry may exist later if dl is enabled

Fixes GH-8466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants