Skip to content

Replace dependencies on /ext/hash in various extensions#21832

Merged
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:follow-up
Jul 9, 2026
Merged

Replace dependencies on /ext/hash in various extensions#21832
LamentXU123 merged 1 commit into
php:masterfrom
LamentXU123:follow-up

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

Followup-PR for #21724. Using the new API in #21724 to replace dependencies on /ext/hash in

  • ext/opcache/ZendAccelerator/
  • ext/soap/php_http.c
  • Zend/zend_system_id.c

In the following ext, there are independent implementation of bin2hex. This PR also change them to directly using the new Zend API.

  • ext/standard/string.c
  • ext/hash/php_hash.h

@Girgias Girgias 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.

Please rebase ontop of latest master rather than merging master into the branch.

Comment thread ext/hash/php_hash.h Outdated
@@ -184,13 +184,7 @@ static inline void php_hash_free_context(const php_hash_ops *ops, void *ctx) {

static inline void php_hash_bin2hex(char *out, const unsigned char *in, size_t in_len)

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.

Does this function still make any sense to exist?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It doesn't. I was busy removing it at the time you comment 😀

Please rebase ontop of latest master rather than merging master into the branch.

Noted.

@LamentXU123 LamentXU123 marked this pull request as draft July 8, 2026 18:36
@LamentXU123 LamentXU123 marked this pull request as ready for review July 8, 2026 18:37

@iliaal iliaal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@LamentXU123 LamentXU123 merged commit 6bc7c26 into php:master Jul 9, 2026
33 of 34 checks passed
@LamentXU123 LamentXU123 deleted the follow-up branch July 9, 2026 12:03
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.

3 participants