Skip to content

Zend: remove zend_parse_parameter() - #23051

Open
Girgias wants to merge 1 commit into
php:masterfrom
Girgias:2026-08-remove-zend_parse_parameter-API
Open

Zend: remove zend_parse_parameter()#23051
Girgias wants to merge 1 commit into
php:masterfrom
Girgias:2026-08-remove-zend_parse_parameter-API

Conversation

@Girgias

@Girgias Girgias commented Aug 4, 2026

Copy link
Copy Markdown
Member

This API is far worse than just using the existing zend_parse_arg_TYPE() APIs.

A SourceGraph search [1] shows this API is effectively only used by ext/ds to which a PR migrating away from this API has been submitted. [2] The other two usages are from a now deprecated extension [3] and @arnauld-lb's now longer maintained php-go project. [4]

As such we think it is reasonable to remove said API.

[1] https://sourcegraph.com/search?q=context:global+-f:zend_API.c+-f:zend_API.h+zend_parse_parameter%28&patternType=keyword&sm=0
[2] php-ds/ext-ds#232
[3] https://github.com/libvips/php-vips-ext
[4] https://github.com/arnaud-lb/php-go

This API is far worse than just using the existing zend_parse_arg_TYPE() APIs.

A SourceGraph search [1] shows this API is effectively only used by ext/ds to which a PR migrating away from this API has been submitted. [2]
The other two usages are from a now deprecated extension [3] and @arnauld-lb's now longer maintained php-go project. [4]

As such we think it is reasonable to remove said API.

[1] https://sourcegraph.com/search?q=context:global+-f:zend_API.c+-f:zend_API.h+zend_parse_parameter%28&patternType=keyword&sm=0
[2] php-ds/ext-ds#232
[3] https://github.com/libvips/php-vips-ext
[4] https://github.com/arnaud-lb/php-go
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.

1 participant