-
Notifications
You must be signed in to change notification settings - Fork 800
Document get_error_handler(), get_exception_handler() #4567
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
Conversation
<refentry xml:id="function.get-error-handler" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>get_error_handler</refname> | ||
<refpurpose>Gets the user-defined error handler function</refpurpose> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the same terminology as in
<refpurpose>Sets a user-defined error handler function</refpurpose> |
LGTM! One potential improvement is to add an alternative for the pre-8.5 world as an example. |
@philip I've added a note, inspired from the one in https://www.php.net/array_key_first |
&reftitle.examples; | ||
<para> | ||
<example> | ||
<title><function>get_error_handler</function></title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<title><function>get_error_handler</function></title> | |
<title><function>get_error_handler</function> example</title> |
Same bellow :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit I spotted that should be done in a follow-up PR
&reftitle.examples; | ||
<para> | ||
<example> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, there is no need for the wrapping <para>
tags around the example
&reftitle.seealso; | ||
<para> | ||
<simplelist> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto no need for the wrapping para
tag here
&reftitle.examples; | ||
<para> | ||
<example> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
&reftitle.notes; | ||
<tip> | ||
<simpara> | ||
Prior to PHP 8.5.0, this functionality can be provided by the following | ||
polyfill: | ||
</simpara> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent is off
&reftitle.seealso; | ||
<para> | ||
<simplelist> | ||
<member><function>set_exception_handler</function></member> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Followup of #4567 to address post-merge comments
RFC: https://wiki.php.net/rfc/get-error-exception-handler