Skip to content

ext/openssl: Propagate session_get_cb exceptions unchanged - #25218

Closed
iliaal wants to merge 1 commit into
php:PHP-8.6from
iliaal:fix/openssl-session-get-cb-exception
Closed

iliaal wants to merge 1 commit into
php:PHP-8.6from
iliaal:fix/openssl-session-get-cb-exception

Conversation

@iliaal

@iliaal iliaal commented Nov 5, 2026

Copy link
Copy Markdown
Member

An exception thrown by session_get_cb left the call's return value undefined, and the return type check reported it as a TypeError chained over the user's exception. Skip the check for an undefined value, as the PSK callbacks already do, so the original exception reaches the caller.

An exception thrown by session_get_cb left the call's return value
undefined, which the return type check then reported as a TypeError
chained over the user's exception. Skip that check for an undefined
return value, as the PSK callbacks already do, so the original exception
reaches the caller.
@iliaal iliaal closed this in 24ca066 Nov 5, 2026
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