Skip to content

hash: Add simple HashContext::__debugInfo() implementation - #14644

Merged
TimWolla merged 2 commits into
php:masterfrom
TimWolla:hash-context-debugInfo
Jun 27, 2024
Merged

hash: Add simple HashContext::__debugInfo() implementation#14644
TimWolla merged 2 commits into
php:masterfrom
TimWolla:hash-context-debugInfo

Conversation

@TimWolla

Copy link
Copy Markdown
Member

Alternatively a public readonly string $algo; could be added to the object. It would implicitly show up in the debug info output and can also be programmatically be accessed. But I'm not sure of programmatic access to just the $algo is useful, without also having the flags and/or HMAC key.

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

Makes sense to me, should have an UPGRADING entry somewhere.

@TimWollaTimWolla changed the title hash: Add simply HashContext::__debugInfo() implementationhash: Add simple HashContext::__debugInfo() implementationJun 27, 2024
@TimWolla
TimWolla merged commit ac54d1c into php:masterJun 27, 2024
@TimWolla
TimWolla deleted the hash-context-debugInfo branch June 27, 2024 17:29
Sign up for freeto 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

@TimWolla@Girgias