Skip to content

hash: HashContext::__serialize returns an array, not void#5673

Closed
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-src/hash-serialize-returnvalue
Closed

hash: HashContext::__serialize returns an array, not void#5673
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-src/hash-serialize-returnvalue

Conversation

@lacatoire

Copy link
Copy Markdown
Member

The Return Values section used &return.void;, but the method returns an array (the methodsynopsis on the same page already declares array).

Verified in php-src: ext/hash/hash.stub.php declares __serialize(): array, and PHP_METHOD(HashContext, __serialize) in ext/hash/hash.c does array_init(return_value) then fills it with the serialized state.

@lacatoire lacatoire requested a review from TimWolla as a code owner July 11, 2026 19:24
@lacatoire lacatoire closed this Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant