Skip to content

Fix constants being redefined in PHP 8.4 polyfill #515

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

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

cs278
Copy link
Contributor

@cs278 cs278 commented Feb 19, 2025

Tracked down this error to this library:

In bootstrap.php line 19:

  [ErrorException]
  Constant CURL_HTTP_VERSION_3 already defined

It appears to me the standard is to conditionally define symbols so these two were missing a check. I've also added a basic test which should prevent this happening again.

@nicolas-grekas
Copy link
Member

Thank you @cs278.

@nicolas-grekas nicolas-grekas merged commit 48780e2 into symfony:1.x Feb 20, 2025
0 of 7 checks passed
@cs278 cs278 deleted the load-once branch February 20, 2025 13:49
@ro0NL ro0NL mentioned this pull request Mar 3, 2025
@windaishi windaishi mentioned this pull request Apr 11, 2025
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.

4 participants