Skip to content

fix: duplicate metrics collector registration attempted panic#1392

Merged
dunglas merged 1 commit intophp:mainfrom
IndraGunawan:fix-duplicate-metrics
Feb 19, 2025
Merged

fix: duplicate metrics collector registration attempted panic#1392
dunglas merged 1 commit intophp:mainfrom
IndraGunawan:fix-duplicate-metrics

Conversation

@IndraGunawan
Copy link
Contributor

@IndraGunawan IndraGunawan commented Feb 19, 2025

@dunglas
Copy link
Member

dunglas commented Feb 19, 2025

I tried to replicate the issue with FrankenPHP but I didn't manage to do it. For some reason, only Mercure (which is is shipped with FrankenPHP) seems affected.

Maybe should we merge this PR by security anyway.

@IndraGunawan
Copy link
Contributor Author

i also didn't manage to replicate the issue with testdata and dunglas/symfony-docker, when updating the registry i had tried with single and multi workers though

@dunglas dunglas merged commit 57e7747 into php:main Feb 19, 2025
39 of 40 checks passed
@dunglas
Copy link
Member

dunglas commented Feb 19, 2025

Thanks @IndraGunawan. I'm not fond of merging "just in case", but I have the feeling that the crash may happen in special conditions. Maybe @mohammed90 has an idea of how to add a test for that?

@IndraGunawan IndraGunawan deleted the fix-duplicate-metrics branch March 25, 2025 11:56
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.

Error when updating FrankenPHP to version 1.4.3

3 participants