Skip to content

Fix Go fuzz build errors in cgi_test.go and frankenphp.go - #2823

Merged
dunglas merged 1 commit into
php:mainfrom
xingyaner:fix-build
Nov 8, 2026
Merged

dunglas merged 1 commit into
php:mainfrom
xingyaner:fix-build

Conversation

@xingyaner

Copy link
Copy Markdown
Contributor

The OSS-Fuzz fuzz build fails because cgi_test.go contains a benchmark that is not needed by the fuzz targets and because frankenphp.go lacks the required os import. Remove BenchmarkSplitRawHeader from cgi_test.go and add the missing os import to frankenphp.go. The change was verified successfully with the OSS-Fuzz fuzzing build and check_build.

@dunglas

dunglas commented Nov 7, 2026

Copy link
Copy Markdown
Member

Could you move it in another file instead of removing it?

@xingyaner

xingyaner commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Sure, I’ve moved it to a separate file instead of removing.

@dunglas
dunglas merged commit a777350 into php:main Nov 8, 2026
28 checks passed
@dunglas

dunglas commented Nov 8, 2026

Copy link
Copy Markdown
Member

Thank you!

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.

2 participants