php-doc-en/reference/uopz/functions/uopz-get-exit-status.xml
Christoph Michael Becker 961ac1b441 Remove wrong and inappropriate notes
Likely these have been introduced due to careless copy & paste.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346696 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-04 15:12:42 +00:00

92 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.uopz-get-exit-status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>uopz_get_exit_status</refname>
<refpurpose>Retrieve the last set exit status</refpurpose>
</refnamediv>
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis role="procedural">
<type>mixed</type><methodname>uopz_get_exit_status</methodname>
<void />
</methodsynopsis>
<para>
Retrieves the last set exit status, i.e. the value passed to
<function>exit</function>.
</para>
</refsect1><!-- }}} -->
<refsect1 role="parameters"><!-- {{{ -->
&reftitle.parameters;
&no.function.parameters;
</refsect1><!-- }}} -->
<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
This function returns the last exit status, or &null; if <function>exit</function>
has not been called.
</para>
</refsect1><!-- }}} -->
<refsect1 role="examples"><!-- {{{ -->
&reftitle.examples;
<example xml:id="uopz-get-exit-status.example.basic"><!-- {{{ -->
<title><function>uopz_get_exit_status</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
exit(123);
echo uopz_get_exit_status();?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
123
]]>
</screen>
</example><!-- }}} -->
</refsect1><!-- }}} -->
<refsect1 role="notes"><!-- {{{ -->
&reftitle.notes;
<caution>
<para>
<link linkend="book.opcache">OPcache</link> optimizes away dead code after unconditional exit.
</para>
</caution>
</refsect1><!-- }}} -->
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
<member><function>uopz_allow_exit</function></member>
</simplelist>
</refsect1><!-- }}} -->
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->