Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Mar 15, 2025

No description provided.

@Girgias Girgias force-pushed the stream-zpp-follow-up branch from a22959f to ec13ba7 Compare March 15, 2025 21:00
@Girgias Girgias marked this pull request as ready for review March 15, 2025 21:52
*destination_stream_ptr = (php_stream*)res->ptr;
return true;
} else {
zend_argument_type_error(arg_num, "must be an open stream resource");
Copy link
Member

Choose a reason for hiding this comment

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

open vs valid? The existing code uses valid instead of open, and this should be consistent imo.
Other parts of the PR look fine I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem I find is that a closed stream still feels "valid" but will fail such a check. This is why I changed it to "open"

@Girgias Girgias merged commit fec4f7f into php:master Mar 24, 2025
9 checks passed
@Girgias Girgias deleted the stream-zpp-follow-up branch March 24, 2025 22:54
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