cvs: phpdoc-pt_BR /reference/misc/functions exit.xml
| From: | Fernando Correa da Concei��o | Date: | Fri, 18 Apr 2003 23:04:47 +0000 |
| Subject: | cvs: phpdoc-pt_BR /reference/misc/functions exit.xml | ||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-779@lists.php.net to get a copy of this message | ||
fernandoc Fri Apr 18 19:04:47 2003 EDT
Modified files:
/phpdoc-pt_BR/reference/misc/functions exit.xml
Log:
Update
Index: phpdoc-pt_BR/reference/misc/functions/exit.xml
diff -u phpdoc-pt_BR/reference/misc/functions/exit.xml:1.1
phpdoc-pt_BR/reference/misc/functions/exit.xml:1.2
--- phpdoc-pt_BR/reference/misc/functions/exit.xml:1.1 Tue Dec 3 22:40:47 2002
+++ phpdoc-pt_BR/reference/misc/functions/exit.xml Fri Apr 18 19:04:46 2003
@@ -1,84 +1,87 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: fernandoc Status: ready -->
- <!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 -->
- <refentry id="function.exit">
- <refnamediv>
- <refname>exit</refname>
- <refpurpose>Mostra uma mensagem e termina o script atual</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Descrição</title>
- <methodsynopsis>
- <type>void</type><methodname>exit</methodname>
- <methodparam
choice="opt"><type>string</type><parameter>status</parameter></methodparam>
- </methodsynopsis>
- <methodsynopsis>
- <type>void</type><methodname>exit</methodname>
-
<methodparam><type>int</type><parameter>status</parameter></methodparam>
- </methodsynopsis>
- <note>
- <simpara>
- Esta não é uma função real, mas uma construção da linguagem.
- </simpara>
- </note>
- <simpara>
- A função <function>exit</function> termina a execução do script.
- Ela mostra o parâmetro <parameter>status</parameter> justamente antes de sair.
- </simpara>
- <simpara>
- Se <parameter>status</parameter> é um <type>integer</type>, este
valor
- será usado como estado se saída. Estados de saída deve, estar no
- intervalo de 1 a 254, o estado de saída 255 é reservado pelo php e não deve ser usado.
- </simpara>
- <note>
- <simpara>
- A versão atual do CVS NÃO mostra <parameter>status</parameter>
- se for um <type>integer</type>.
- </simpara>
- </note>
- <note>
- <simpara>
- A função <function>die</function> é um apelido para a função
- <function>exit</function>.
- </simpara>
- </note>
- <para>
- <example>
- <title>Exemplo <function>exit</function></title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
-$filename = '/caminho/para/arquivo';
-$file = fopen ($filename, 'r')
- or exit("Não pude abrir o arquivo ($filename)");
-
-?>
-]]>
- </programlisting>
- <!-- TODO: example with integer exit-statis -->
- </example>
- </para>
- </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:"../../../../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
--->
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- EN-Revision: 1.4 Maintainer: fernandoc Status: ready -->
+ <!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 -->
+ <refentry id="function.exit">
+ <refnamediv>
+ <refname>exit</refname>
+ <refpurpose>Mostra uma mensagem e termina o script atual</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Descrição</title>
+ <methodsynopsis>
+ <type>void</type><methodname>exit</methodname>
+ <methodparam
choice="opt"><type>string</type><parameter>status</parameter></methodparam>
+ </methodsynopsis>
+ <methodsynopsis>
+ <type>void</type><methodname>exit</methodname>
+
<methodparam><type>int</type><parameter>status</parameter></methodparam>
+ </methodsynopsis>
+ <note>
+ <simpara>
+ Esta não é uma função real, mas uma construção da linguagem.
+ </simpara>
+ </note>
+ <simpara>
+ A função <function>exit</function> termina a execução do script.
+ Ela mostra o parâmetro <parameter>status</parameter> justamente antes de sair.
+ </simpara>
+ <simpara>
+ Se <parameter>status</parameter> é um <type>integer</type>, este
valor
+ será usado como estado se saída. Estados de saída deve, estar no
+ intervalo de 1 a 254, o estado de saída 255 é reservado pelo php e não deve ser usado.
+ </simpara>
+ <note>
+ <simpara>
+ Para a versão do PHP >= 4.2.0 NÃO mostra o parâmetro
<parameter>status</parameter>
+ se for um <type>integer</type>.
+ </simpara>
+ </note>
+ <note>
+ <simpara>
+ A função <function>die</function> é um apelido para a função
+ <function>exit</function>.
+ </simpara>
+ </note>
+ <para>
+ <example>
+ <title>Exemplo <function>exit</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$filename = '/caminho/para/arquivo';
+$file = fopen ($filename, 'r')
+ or exit("Não pude abrir o arquivo ($filename)");
+
+?>
+]]>
+ </programlisting>
+ <!-- TODO: example with integer exit-statis -->
+ </example>
+ </para>
+ <para>
+ Veja também: <function>register_shutdown_function</function>.
+ </para>
+ </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:"../../../../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
+-->