Skip to content

Zend: remove zend_parse_parameter() - #23051

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-remove-zend_parse_parameter-API
Aug 10, 2026
Merged

Zend: remove zend_parse_parameter()#23051
Girgias merged 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

@arnaud-lb arnaud-lb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me!

@Girgias
Girgias merged commit bad89ea into php:master Aug 10, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-08-remove-zend_parse_parameter-API branch August 10, 2026 17:34
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