Skip to content

openssl: check if reneg_limit_callback is callable prior to calling - #24414

Merged
Girgias merged 2 commits into
php:masterfrom
Girgias:2026-10-openssl-call-user-fn-migration
Oct 19, 2026
Merged

Girgias merged 2 commits into
php:masterfrom
Girgias:2026-10-openssl-call-user-fn-migration

Conversation

@Girgias

@Girgias Girgias commented Oct 18, 2026

Copy link
Copy Markdown
Member

No description provided.

@Girgias
Girgias force-pushed the 2026-10-openssl-call-user-fn-migration branch from eabe45a to 0e37c11 Compare October 18, 2026 23:05
@Girgias
Girgias marked this pull request as ready for review October 19, 2026 14:01
@Girgias
Girgias requested a review from bukka as a code owner October 19, 2026 14:01
@Girgias
Girgias requested a review from ndossche October 19, 2026 14:01

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

Semantically there's no difference AFAICT.
But I suppose you want to get rid of call_user_function entirely at some point, hence this PR? (Sorry, my memory is fuzzy, I'm just a small language model after all)
Because if call_user_function were to stay existing in the future, then the old code is preferable because it's simpler

@Girgias

Girgias commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

Yes that is the plan. There are about 10 remaining calls, some would go away with PHP 9 (e.g. assert and ext/session), some need a new API to call a zend_string* (e.g. unserialize), or still need to be converted.

@Girgias
Girgias merged commit 1f29f47 into php:master Oct 19, 2026
16 of 18 checks passed
@Girgias
Girgias deleted the 2026-10-openssl-call-user-fn-migration branch October 19, 2026 17:19
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