Skip to content

Add new zend APIs for bin2hex to remove ext/hash usage in various extensions#21724

Open
LamentXU123 wants to merge 5 commits into
php:masterfrom
LamentXU123:refactor-7
Open

Add new zend APIs for bin2hex to remove ext/hash usage in various extensions#21724
LamentXU123 wants to merge 5 commits into
php:masterfrom
LamentXU123:refactor-7

Conversation

@LamentXU123

Copy link
Copy Markdown
Contributor

There are various extensions in the php code base that includes ext/hash/php_hash for the php_hash_bin2hex method. While these method is actually simple, we can make them as APIs in the zend engine to remove the dependence on ext/hash/

This reverts commit e24a9d6.
@Girgias

Girgias commented Apr 13, 2026

Copy link
Copy Markdown
Member

I'm in favour of this as I think ideally extensions shouldn't have dependencies on other extensions if it can be avoided.

@LamentXU123

LamentXU123 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

I'm in favour of this as I think ideally extensions shouldn't have dependencies on other extensions if it can be avoided.

I think It'd be okay to have dependencies but in this case the function used in ext/hash is bin2hex which is so simple that we really don't have to depend on it :)

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