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

Manually implement stream_context_set_options in a php8.1-compatible way #495

Closed
wants to merge 1 commit into from

Conversation

shish
Copy link
Collaborator

@shish shish commented Dec 3, 2024

No description provided.

Comment on lines +18 to +21
// returns literal "true", which php8.1 doesn't support, so we implement
// this one manually and return "bool"
'stream_context_set_options',
// This function need to return false when iterating on an end of file.
Copy link
Collaborator

@staabm staabm Dec 3, 2024

Choose a reason for hiding this comment

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

maybe we can rewrite a :true or :false return type in the generator to bool instead of this hardcoded 1 function fix? other functions might have the same problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems sensible, #497 does it that way instead

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