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

Fix GH-10232 autoload during constant resolution. #13313

Closed
wants to merge 1 commit into from

Conversation

ranvis
Copy link
Contributor

@ranvis ranvis commented Feb 3, 2024

The fix and test for #10232.

The filename and line number are incorrect when userland code is executed during constant expression resolution, resulting in the failure of include functions.

https://3v4l.org/v4nl0

@ranvis ranvis changed the base branch from master to PHP-8.2 February 3, 2024 05:02
@ranvis ranvis changed the title Add test for autoload during constant resolution. Fix GH-10232 autoload during constant resolution. Feb 16, 2024
@ranvis
Copy link
Contributor Author

ranvis commented Feb 16, 2024

Updated the branch to propose a fix.

@iluuu1994
Copy link
Member

Thank you @ranvis! I'll have a look on Monday.

@ranvis ranvis requested a review from dstogov as a code owner April 15, 2024 15:42
@yangyang198703
Copy link

yangyang198703 commented Apr 19, 2024

Bump on this, we are blocked by this bug for updating php version @iluuu1994 @dstogov

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, this looks right.
@iluuu1994 if you don't see any problems, please, merge this.

@iluuu1994
Copy link
Member

This slipped through on my side. I'll have a look today.

@iluuu1994 iluuu1994 closed this in 3f0b204 Apr 22, 2024
@iluuu1994
Copy link
Member

Oops, I linked this PR in a wrong commit. Sorry about that.

@iluuu1994 iluuu1994 reopened this Apr 22, 2024
@iluuu1994 iluuu1994 closed this in f8b9030 Apr 22, 2024
@iluuu1994
Copy link
Member

This change looked correct to me as well. Thank you @ranvis! And sorry for the delay.

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

Successfully merging this pull request may close these issues.

4 participants