Skip to content

Fixed GH-18267 finfo_file() crashing on invalid URL protocol. #18269

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
Apr 8, 2025

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Apr 7, 2025

No description provided.

@devnexen devnexen marked this pull request as ready for review April 7, 2025 21:47
@devnexen devnexen requested a review from Girgias April 7, 2025 21:47
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

I would prefer a guard after the call to php_stream_context_from_zval in PHP_FUNCTION(finfo_file) instead of removing this assertion.

@Girgias
Copy link
Member

Girgias commented Apr 8, 2025

Seems like you hit some file conflicts for open_basedir ... wonder if this is something that needs to be fixed too. Just rerunning the CI

@devnexen
Copy link
Member Author

devnexen commented Apr 8, 2025

Seems like you hit some file conflicts for open_basedir ... wonder if this is something that needs to be fixed too. Just rerunning the CI

Oh right ..

@Girgias Girgias merged commit 2d39c78 into php:master Apr 8, 2025
9 checks passed
@devnexen devnexen deleted the gh18267 branch April 8, 2025 21:44
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.

2 participants