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

[10.x] Backport 11.x PHP 8.4 fix for str_getcsv deprecation #54074

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

aka-tpayne
Copy link

I know that 10.x is technically in security fix mode only, but with the PHP 8.4 compat pr (#53612), a large amount of fixes were made to bring some form of PHP 8.4 support to 10.x.

The change included in this PR has already been implemented in 11.x in PR #53571.

Considering this usage of str_getcsv is within the Validation rules parser, it can get hit a significant amount of times and cause flooding to reporting systems (ex: Sentry).

Copy link
Member

@GrahamCampbell GrahamCampbell left a comment

Choose a reason for hiding this comment

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

I don't think it makes sense to do this. One should not run Laravel 10 on PHP 8.4. Laravel 10 supports only 8.1, 8.2, 8.3.

@aka-tpayne
Copy link
Author

I think the previous PR that includes changes that are specifically for allowing 10.x to run on PHP 8.4 causes confusion then.

If it's not going to be supported then why introduce any changes to support it?

@GrahamCampbell
Copy link
Member

GrahamCampbell commented Jan 4, 2025

Oh, hmmm. The compatibility is only partial. CI does not test on 8.4. Laravel 11 is the first version to officially support PHP 8.4. In any case, like you say, this is not a security fix.

@taylorotwell taylorotwell merged commit eacb494 into laravel:10.x Jan 6, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants