Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use php_error_docref() instead of zend_error() in session.c #15505

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 20, 2024

Using php_error_docref() is preferable since it outputs additional details (which function has been called and whether it is a startup or shutdown error), uses HTML markup, and also provides a link to the documentation, if configured.

Since these deprecation warnings have been introduced recently[1][2], i.e. for PHP 8.4, there are no BC concerns.

[1] e8ff7c7
[2] b36eac9


See also e8ff7c7#r145516647.

/cc @kocsismate and @TimWolla.

Using `php_error_docref()` is preferable since it outputs additional
details (which function has been called and whether it is a startup or
shutdown error), uses HTML markup, and also provides a link to the
documentation, if configured.

Since these deprecation warnings have been introduced recently[1][2],
i.e. for PHP 8.4, there are no BC concerns.

[1] <php@e8ff7c7>
[2] <php@b36eac9>
@cmb69 cmb69 requested a review from Girgias August 29, 2024 10:18
Copy link
Member

@kocsismate kocsismate left a comment

Choose a reason for hiding this comment

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

LGTM except for the nit

@cmb69 cmb69 merged commit 217ea73 into php:master Sep 4, 2024
10 checks passed
@cmb69 cmb69 deleted the cmb/session-docref branch September 4, 2024 14:02
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