Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a custom Fast ZPP specifier for php_streams #17962

Merged
merged 8 commits into from
Mar 3, 2025

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Mar 3, 2025

This is based on an old idea from @sgolemon.
This would reduce the complexity of the conversion from resources to opaque objects for streams when we finally get round to it.

The approach is similar to the one I did for the GMP extension functions that need to handle a complex union of types which doesn't warrant a dedicated Zend ZPP specifier.

Some obvious follow-ups:

  • A custom Fast ZPP specifier for stream contexts
  • A custom Fast ZPP specifier for stream resource or non-empty string path

@Girgias Girgias force-pushed the zpp-stream-specifier branch from 8f512ca to 4ed910a Compare March 3, 2025 16:13
@Girgias Girgias force-pushed the zpp-stream-specifier branch from 4ed910a to cb07bd3 Compare March 3, 2025 16:44
@Girgias Girgias marked this pull request as ready for review March 3, 2025 17:59
@Girgias Girgias requested review from bukka and devnexen as code owners March 3, 2025 17:59
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

It looks reasonable

@Girgias Girgias merged commit 9285559 into php:master Mar 3, 2025
9 checks passed
@Girgias Girgias deleted the zpp-stream-specifier branch March 3, 2025 18:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants