-
Notifications
You must be signed in to change notification settings - Fork 732
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
Add more function/constant links to ob_get_status #3053
Add more function/constant links to ob_get_status #3053
Conversation
reference/outcontrol/constants.xml
Outdated
@@ -3,7 +3,7 @@ | |||
<appendix xml:id="outcontrol.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | |||
&reftitle.constants; | |||
&extension.constants.core; | |||
<variablelist> | |||
<variablelist xml:id="constants.flags-passed-to-handler"> |
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.
Please have the IDs as follows for all IDs :)
<variablelist xml:id="constants.flags-passed-to-handler"> | |
<variablelist xml:id="outcontrol.constants.flags-passed-to-handler"> |
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.
Done. I only updated the three new id
s I added. I'll update the rest of them when I'm done updating the docs of the six ob_ clean / flush()
functions referencing them.
<note> | ||
<para xml:id="function.ob-list-handlers.names"> | ||
If <link linkend="ini.output-buffering">output_buffering</link> is enabled | ||
and no <link linkend="ini.output-handler">output_handler</link> is set, | ||
or no callback or &null; was passed to <function>ob_start</function>, | ||
<literal>"default output handler"</literal> is returned. | ||
Enabling <link linkend="ini.output-buffering">output_buffering</link> | ||
and setting an <link linkend="ini.output-handler">output_handler</link> | ||
is equivalent to passing | ||
an <link linkend="functions.internal">internal (built-in) function</link> | ||
to <function>ob_start</function>. | ||
</para> | ||
<para> | ||
If a <type>callable</type> was passed to <function>ob_start</function>, | ||
the <link linkend="language.namespaces.basics">fully qualified name</link> | ||
of the <type>callable</type> is returned. | ||
If the <type>callable</type> is an object implementing | ||
<link linkend="language.oop5.magic.invoke">__invoke()</link>, | ||
the <link linkend="language.namespaces.basics">fully qualified name</link> | ||
of the object's <link linkend="language.oop5.magic.invoke">__invoke()</link> | ||
method is returned. | ||
If the <type>callable</type> is a <classname>Closure</classname>, | ||
<literal>"Closure::__invoke"</literal> is returned. | ||
</para> | ||
</note> |
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.
I don't think this should be in a note, please revert
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.
Reverted.
Also, this was the section I had issues with trying to add an xml:id
to (#3042 (comment)).
This reverts commit 59b9f8b.
9135f25
to
d82b187
Compare
Co-authored-by: Gina Peter Banyard <girgias@php.net>
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.
I will have a look at the linking issue some time next week as I'll be back on my main desktop which has a better setup.
Added
<link>
s toob_get_status()
to reference other functions/constants as appropriate and added appropriatexml:id
s to these functions/constants so these can be linked to.Also added the same note on the difference in
ob_get_level()
andob_get_status()
nesting levels as the one inob_get_status()
.