cvs: phpdoc-es / translation.xml /appendices ini.xml wrappers.xml /language oop.xml /reference/classobj/functions get-class.xml
get-parent-class.xml /reference/errorfunc ini.xml /reference/filesystem ini.xml /reference/math/functions abs.xml acos.xml asin.xml
/reference/misc/functions defined.xml /reference/outcontrol/functions flush.xml ob-end-clean.xml ob-end-flush.xml ob-get-length.xml
ob-implicit-flush.xml ob-start.xml

From: Date: Sat, 23 Jul 2005 15:22:35 +0000
Subject: cvs: phpdoc-es / translation.xml /appendices ini.xml wrappers.xml /language oop.xml /reference/classobj/functions get-class.xml
get-parent-class.xml /reference/errorfunc ini.xml /reference/filesystem ini.xml /reference/math/functions abs.xml acos.xml asin.xml
/reference/misc/functions defined.xml /reference/outcontrol/functions flush.xml ob-end-clean.xml ob-end-flush.xml ob-get-length.xml
ob-implicit-flush.xml ob-start.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1162@lists.php.net to get a copy of this message
lboshell Sat Jul 23 11:22:35 2005 EDT Modified files: /phpdoc-es translation.xml /phpdoc-es/appendices ini.xml wrappers.xml /phpdoc-es/language oop.xml /phpdoc-es/reference/classobj/functions get-class.xml get-parent-class.xml /phpdoc-es/reference/errorfunc ini.xml /phpdoc-es/reference/filesystem ini.xml /phpdoc-es/reference/math/functions abs.xml acos.xml asin.xml /phpdoc-es/reference/misc/functions defined.xml /phpdoc-es/reference/outcontrol/functions flush.xml ob-end-clean.xml ob-end-flush.xml ob-get-length.xml ob-implicit-flush.xml ob-start.xml Log: - Actualizaciones - Adopcion de documentos - Asignacion de nuevo trabajo

http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.202&r2=1.203&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.202 phpdoc-es/translation.xml:1.203 --- phpdoc-es/translation.xml:1.202 Sat Jul 16 08:02:18 2005 +++ phpdoc-es/translation.xml Sat Jul 23 11:22:34 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.202 $ --> +<!-- $Revision: 1.203 $ --> <!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> <translation> @@ -92,18 +92,16 @@ <file name="reference/pcntl/functions/pcntl-wtermsig.xml" person="jtacon" type="translation" date="17.12.2004"/> - <file name="reference/outcontrol/functions/flush.xml" - person="lboshell" type="revision" date="16.07.2005"/> - <file name="reference/outcontrol/functions/ob-end-clean.xml" - person="lboshell" type="revision" date="16.07.2005"/> - <file name="reference/outcontrol/functions/ob-end-flush.xml" - person="lboshell" type="revision" date="16.07.2005"/> - <file name="reference/outcontrol/functions/ob-get-length.xml" - person="lboshell" type="revision" date="16.07.2005"/> - <file name="reference/outcontrol/functions/ob-implicit-flush.xml" - person="lboshell" type="revision" date="16.07.2005"/> - <file name="reference/outcontrol/functions/ob-start.xml" - person="lboshell" type="revision" date="16.07.2005"/> + <file name="reference/pcre/functions/preg-grep.xml" + person="lboshell" type="revision" date="23.07.2005"/> + <file name="reference/pcre/functions/preg-match.xml" + person="lboshell" type="revision" date="23.07.2005"/> + <file name="reference/pcre/functions/preg-quote.xml" + person="lboshell" type="revision" date="23.07.2005"/> + <file name="reference/pcre/functions/preg-replace.xml" + person="lboshell" type="revision" date="23.07.2005"/> + <file name="reference/pcre/functions/preg-split.xml" + person="lboshell" type="revision" date="23.07.2005"/> </work-in-progress> </translation> http://cvs.php.net/diff.php/phpdoc-es/appendices/ini.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-es/appendices/ini.xml diff -u phpdoc-es/appendices/ini.xml:1.10 phpdoc-es/appendices/ini.xml:1.11 --- phpdoc-es/appendices/ini.xml:1.10 Sat Jul 16 07:26:08 2005 +++ phpdoc-es/appendices/ini.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.23 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.25 Maintainer: lboshell Status: ready --> <appendix id="ini"> <title>Directivas de &php.ini;</title> @@ -51,7 +51,7 @@ <row> <entry>apc.enabled</entry> <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> @@ -81,7 +81,7 @@ <row> <entry>apc.optimization</entry> <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> @@ -211,6 +211,12 @@ <entry>Disponible a partir de PHP 5.0.0.</entry> </row> <row> + <entry>birdstep.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>blenc.key_file</entry> <entry>"/usr/local/etc/blenckeys"</entry> <entry>PHP_INI_ALL</entry> @@ -223,6 +229,36 @@ <entry></entry> </row> <row> + <entry><link linkend="ini.cgi.fix-pathinfo">cgi.fix_pathinfo</link></entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.cgi.force-redirect">cgi.force_redirect</link></entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>cgi.nph</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.cgi.redirect-status-env">cgi.redirect_status_env</link></entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.cgi.rfc2616-headers">cgi.rfc2616_headers</link></entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.child-terminate">child_terminate</link></entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> @@ -493,6 +529,18 @@ <entry></entry> </row> <row> + <entry><link linkend="ini.fastcgi.impersonate">fastcgi.impersonate</link></entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>fastcgi.logging</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>fbsql.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> @@ -508,7 +556,7 @@ <entry>fbsql.batchsize</entry> <entry>"1000"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible a partir de PHP 5-cvs.</entry> + <entry>Disponible a partir de PHP 5.1.0.</entry> </row> <row> <entry>fbsql.default_database</entry> @@ -583,6 +631,12 @@ <entry></entry> </row> <row> + <entry><link linkend="ini.from">from</link></entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.syntax-highlighting">highlight.bg</link></entry> <entry>"#FFFFFF"</entry> <entry>PHP_INI_ALL</entry> @@ -626,7 +680,13 @@ </row> <row> <entry>http.allowed_methods</entry> - <entry>"GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, CONNECT, "</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>http.cache_log</entry> + <entry>NULL</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> @@ -703,12 +763,18 @@ <entry></entry> </row> <row> - <entry>ibm_db2.binmode</entry> - <entry>"0"</entry> + <entry><link linkend="ini.ibm-db2.binmode">ibm_db2.binmode</link></entry> + <entry>"1"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> + <entry><link linkend="ini.ibm-db2.instance-name">ibm_db2.instance_name</link></entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + <entry></entry> + </row> + <row> <entry>iconv.input_encoding</entry> <entry>"ISO-8859-1"</entry> <entry>PHP_INI_ALL</entry> @@ -829,6 +895,12 @@ <entry>Disponible a partir de PHP 4.0.2.</entry> </row> <row> + <entry>ingres.cursor_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>ingres.default_database</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> @@ -859,6 +931,12 @@ <entry>Disponible a partir de PHP 4.0.2.</entry> </row> <row> + <entry>ingres.report_db_warnings</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>ircg.control_user</entry> <entry>"nobody"</entry> <entry>PHP_INI_ALL</entry> @@ -1064,11 +1142,29 @@ </row> <row> <entry><link linkend="ini.mime-magic.magicfile">mime_magic.magicfile</link></entry> - <entry>"/path/to/php/magic.mime"</entry> + <entry>"/ruta/hacia/php/magic.mime"</entry> <entry>PHP_INI_SYSTEM</entry> <entry>Disponible a partir de PHP 4.3.0.</entry> </row> <row> + <entry><link linkend="ini.msql.allow-persistent">msql.allow_persistent</link></entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.msql.max-links">msql.max_links</link></entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.msql.max-persistent">msql.max_persistent</link></entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>mssql.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> @@ -1363,6 +1459,24 @@ <entry></entry> </row> <row> + <entry>oracle.allow_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>oracle.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>oracle.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.output-buffering">output_buffering</link></entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR</entry> @@ -1375,6 +1489,12 @@ <entry>Disponible a partir de PHP 4.0.4.</entry> </row> <row> + <entry>pdo_odbc.connection_pooling</entry> + <entry>"strict"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry>pfpro.defaulthost</entry> <entry>"test-payflow.verisign.com"</entry> <entry>PHP_INI_ALL</entry> @@ -1474,13 +1594,13 @@ <entry>realpath_cache_size</entry> <entry>"16K"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>Disponible a partir de PHP 5-cvs.</entry> + <entry>Disponible a partir de PHP 5.1.0.</entry> </row> <row> <entry>realpath_cache_ttl</entry> <entry>"120"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>Disponible a partir de PHP 5-cvs.</entry> + <entry>Disponible a partir de PHP 5.1.0.</entry> </row> <row> <entry><link linkend="ini.register-argc-argv">register_argc_argv</link></entry> @@ -1513,6 +1633,12 @@ <entry>Disponible a partir de PHP 5.0.0.</entry> </row> <row> + <entry>runkit.superglobal</entry> + <entry>""</entry> + <entry>PHP_INI_PERDIR</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.safe-mode">safe_mode</link></entry> <entry>"0"</entry> <entry>PHP_INI_SYSTEM</entry> @@ -1867,6 +1993,48 @@ <entry>Disponible a partir de PHP 5.0.0.</entry> </row> <row> + <entry><link linkend="ini.sybase.allow-persistent">sybase.allow_persistent</link></entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + <entry>Disponible a partir de PHP 4.0.3.</entry> + </row> + <row> + <entry><link linkend="ini.sybase.compatability-mode">sybase.compatability_mode</link></entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>sybase.interface_file</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.sybase.max-links">sybase.max_links</link></entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry>Disponible a partir de PHP 4.0.3.</entry> + </row> + <row> + <entry><link linkend="ini.sybase.max-persistent">sybase.max_persistent</link></entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + <entry>Disponible a partir de PHP 4.0.3.</entry> + </row> + <row> + <entry><link linkend="ini.sybase.min-error-severity">sybase.min_error_severity</link></entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.sybase.min-message-severity">sybase.min_message_severity</link></entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.sybct.allow-persistent">sybct.allow_persistent</link></entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> @@ -1915,6 +2083,24 @@ <entry>Disponible a partir de PHP 4.0.4.</entry> </row> <row> + <entry>sybct.packet_size</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry><link linkend="ini.sybct.timeout">sybct.timeout</link></entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> + <entry>sysvshm.init_mem</entry> + <entry>"10000"</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> + </row> + <row> <entry><link linkend="ini.tidy.clean-output">tidy.clean_output</link></entry> <entry>"0"</entry> <entry>PHP_INI_PERDIR</entry> @@ -2991,32 +3177,32 @@ </row> <row> <entry>cgi.fix_pathinfo</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>cgi.force_redirect</entry> <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>cgi.redirect_status_env</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>fastcgi.impersonate</entry> <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> <row> <entry>cgi.rfc2616_headers</entry> <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> <entry></entry> </row> </tbody> http://cvs.php.net/diff.php/phpdoc-es/appendices/wrappers.xml?r1=1.15&r2=1.16&ty=u Index: phpdoc-es/appendices/wrappers.xml diff -u phpdoc-es/appendices/wrappers.xml:1.15 phpdoc-es/appendices/wrappers.xml:1.16 --- phpdoc-es/appendices/wrappers.xml:1.15 Sat Jul 16 07:26:08 2005 +++ phpdoc-es/appendices/wrappers.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.51 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.53 Maintainer: lboshell Status: ready --> <appendix id="wrappers"> <title>Lista de Protocolos/Envolturas Soportadas</title> <para> @@ -104,6 +104,64 @@ </para> </section> + <section id="wrappers.socket"> + <title>Socket</title> + <para> + Esta secci&oacute;n contiene las opciones de contexto soportadas + por las envolturas que trabajan sobre sockets, como + <literal>tcp</literal>, <literal>http</literal> o + <literal>ftp</literal>. + </para> + <para> + A partir de PHP 5.1.0 solo una opci&oacute;n es soportada, + <literal>bindto</literal>, la cual puede ser usada para especificar + la direcci&oacute;n IP (ya sea IPv4 o IPv6) y/o el n&uacute;mero de + puerto que PHP usar&aacute; para acceder a la red. La sintaxis es + <literal>ip:puerto</literal> (es posible definir el n&uacute;mero + IP o de puerto como <literal>0</literal> si desea que el sistema lo + elija por usted). + </para> + <note> + <para> + Dado que FTP crea dos conexiones de socket durante la + operaci&oacute;n normal, no es posible especificar el + n&uacute;mero de puerto en la opci&oacute;n + <literal>bindto</literal>. As&iacute; que la &uacute;nica sintaxis + soportada es <literal>ip:0</literal> para la envoltura FTP. + </para> + </note> + <example> + <title>Algunos ejemplos del uso de la opci&oacute;n bindto</title> + <programlisting role="php"> +<![CDATA[ +<?php +// conectarse a internet usando la IP '192.168.0.100' IP +$opciones = array('socket' => + array('bindto' => '192.168.0.100:0')); + + +// conectarse a internet usano la IP '192.168.0.100' y el puerto '7000' +$opciones = array('socket' => + array('bindto' => '192.168.0.100:7000')); + + +// conectarse a internet usando el puerto '7000' +$opciones = array('socket' => + array('bindto' => '0:7000')); + + +// crear el contexto... +$contexto = stream_context_create($opciones); + +// ...y usarlo para recuperar los datos +echo file_get_contents('http://www.example.com', false, $contexto); + +?> +]]> + </programlisting> + </example> + </section> + <section id="wrappers.http"> <title>HTTP y HTTPS</title> <simpara>PHP 3, PHP 4, PHP 5. <filename>https://</filename> a http://cvs.php.net/diff.php/phpdoc-es/language/oop.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-es/language/oop.xml diff -u phpdoc-es/language/oop.xml:1.10 phpdoc-es/language/oop.xml:1.11 --- phpdoc-es/language/oop.xml:1.10 Wed Jul 13 04:27:01 2005 +++ phpdoc-es/language/oop.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.63 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.64 Maintainer: lboshell Status: ready --> <chapter id="language.oop"> <title>Clases y Objetos (PHP 4)</title> @@ -689,7 +689,7 @@ <caution> <simpara> - La siguiente informaci&oacute;n es v&aacute;lida para PHP 4 + La siguiente informaci&oacute;n es v&aacute;lida para PHP &gt;= 4 &uacute;nicamente. </simpara> </caution> http://cvs.php.net/diff.php/phpdoc-es/reference/classobj/functions/get-class.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/classobj/functions/get-class.xml diff -u phpdoc-es/reference/classobj/functions/get-class.xml:1.1 phpdoc-es/reference/classobj/functions/get-class.xml:1.2 --- phpdoc-es/reference/classobj/functions/get-class.xml:1.1 Mon May 9 19:10:42 2005 +++ phpdoc-es/reference/classobj/functions/get-class.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 --> <refentry id="function.get-class"> <refnamediv> @@ -12,7 +12,7 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>get_class</methodname> - <methodparam><type>object</type><parameter>obj</parameter></methodparam> + <methodparam choice="opt"><type>object</type><parameter>obj</parameter></methodparam> </methodsynopsis> <para> Esta funci&oacute;n devuelve el nombre de la clase de la cual el @@ -30,6 +30,12 @@ de las extensiones PHP. </simpara> </note> + <note> + <para> + A partir de PHP 5, <parameter>obj</parameter> es opcional si se + llama desde el m&eacute;todo del objeto. + </para> + </note> <para> <example> <title>Uso de <function>get_class</function></title> http://cvs.php.net/diff.php/phpdoc-es/reference/classobj/functions/get-parent-class.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/classobj/functions/get-parent-class.xml diff -u phpdoc-es/reference/classobj/functions/get-parent-class.xml:1.1 phpdoc-es/reference/classobj/functions/get-parent-class.xml:1.2 --- phpdoc-es/reference/classobj/functions/get-parent-class.xml:1.1 Mon May 9 19:10:42 2005 +++ phpdoc-es/reference/classobj/functions/get-parent-class.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 --> <refentry id="function.get-parent-class"> <refnamediv> @@ -12,7 +12,7 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>get_parent_class</methodname> - <methodparam><type>mixed</type><parameter>obj</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>obj</parameter></methodparam> </methodsynopsis> <para> Si <parameter>obj</parameter> es un objeto, devuelve el nombre de @@ -24,6 +24,12 @@ de la clase padre de la clase con ese nombre. Esta funcionalidad fue agregada en PHP 4.0.5. </para> + <note> + <para> + A partir de PHP 5, <parameter>obj</parameter> es opcional si se + llama desde el m&eacute;todo del objeto. + </para> + </note> <para> <example> <title>Uso de <function>get_parent_class</function></title> http://cvs.php.net/diff.php/phpdoc-es/reference/errorfunc/ini.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-es/reference/errorfunc/ini.xml diff -u phpdoc-es/reference/errorfunc/ini.xml:1.10 phpdoc-es/reference/errorfunc/ini.xml:1.11 --- phpdoc-es/reference/errorfunc/ini.xml:1.10 Wed Mar 16 03:18:21 2005 +++ phpdoc-es/reference/errorfunc/ini.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> <section id="errorfunc.configuration"> &reftitle.runtime; &extension.runtime; @@ -113,6 +113,7 @@ <entry>warn_plus_overloading</entry> <entry>NULL</entry> <entry>PHP_INI??</entry> + <entry></entry> </row> </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/ini.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-es/reference/filesystem/ini.xml diff -u phpdoc-es/reference/filesystem/ini.xml:1.7 phpdoc-es/reference/filesystem/ini.xml:1.8 --- phpdoc-es/reference/filesystem/ini.xml:1.7 Tue Apr 19 21:51:24 2005 +++ phpdoc-es/reference/filesystem/ini.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <section id="filesystem.configuration"> &reftitle.runtime; &extension.runtime; @@ -39,8 +39,9 @@ </row> <row> <entry>from</entry> - <entry>NULL</entry> - <entry>??</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + <entry></entry> </row> <row> <entry>auto_detect_line_endings</entry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/abs.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/abs.xml diff -u phpdoc-es/reference/math/functions/abs.xml:1.1 phpdoc-es/reference/math/functions/abs.xml:1.2 --- phpdoc-es/reference/math/functions/abs.xml:1.1 Sun Apr 14 20:15:38 2002 +++ phpdoc-es/reference/math/functions/abs.xml Sat Jul 23 11:22:34 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'abs' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.abs"> <refnamediv> <refname>abs</refname> @@ -9,14 +10,29 @@ <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>mixed</type><methodname>abs</methodname> - <methodparam><type>mixed</type><parameter>number</parameter></methodparam> + <type>number</type><methodname>abs</methodname> + <methodparam><type>mixed</type><parameter>numero</parameter></methodparam> </methodsynopsis> <para> - Devuelve el valor absoluto de un n&uacute;mero. Si el n&uacute;mero del argumento es - decimal, el tipo de retorno tambi&eacute;n es decimal, de otra manera devuelve - un entero.</para> - + Devuelve el valor absoluto de <parameter>numero</parameter>. Si + el argumento <parameter>numero</parameter> es de tipo + <type>float</type>, el valor de retorno es tambi&eacute;n + <type>float</type>, de otro modo es <type>integer</type> (ya que + <type>float</type> tiene por lo general un rango de valores mayor + que <type>integer</type>). + </para> + <example> + <title>Ejemplo de <function>abs</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$abs = abs(-4.2); // $abs = 4.2; (double/float) +$abs2 = abs(5); // $abs2 = 5; (integer) +$abs3 = abs(-5); // $abs3 = 5; (integer) +?> +]]> + </programlisting> + </example> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/acos.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/acos.xml diff -u phpdoc-es/reference/math/functions/acos.xml:1.1 phpdoc-es/reference/math/functions/acos.xml:1.2 --- phpdoc-es/reference/math/functions/acos.xml:1.1 Sun Apr 14 20:15:39 2002 +++ phpdoc-es/reference/math/functions/acos.xml Sat Jul 23 11:22:35 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'acos' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.57 --> <refentry id="function.acos"> <refnamediv> <refname>acos</refname> @@ -9,15 +10,20 @@ <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>float</type><methodname>acos</methodname> - <methodparam><type>float</type><parameter>arg</parameter></methodparam> + <type>float</type><methodname>acos</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> </methodsynopsis> <para> - Devuelve el arco coseno de arg en radianes.</para> - + Devuelve el arco coseno de <parameter>arg</parameter> en + radianes. <function>acos</function> es la funci&oacute;n + complementaria de <function>cos</function>, lo que quiere decir + que <literal>a==cos(acos(a))</literal> para cada valor de a que + est&eacute; en el rango de <function>acos</function>. + </para> <para> - Vea tambi&eacute;n <function>asin</function> y <function>atan</function>.</para> - + Vea tambi&eacute;n: <function>acosh</function>, + <function>asin</function>, y <function>atan</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/asin.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/asin.xml diff -u phpdoc-es/reference/math/functions/asin.xml:1.1 phpdoc-es/reference/math/functions/asin.xml:1.2 --- phpdoc-es/reference/math/functions/asin.xml:1.1 Sun Apr 14 20:15:40 2002 +++ phpdoc-es/reference/math/functions/asin.xml Sat Jul 23 11:22:35 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'asin' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.57 --> <refentry id="function.asin"> <refnamediv> <refname>asin</refname> @@ -9,15 +10,20 @@ <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>float</type><methodname>asin</methodname> - <methodparam><type>float</type><parameter>arg</parameter></methodparam> + <type>float</type><methodname>asin</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> </methodsynopsis> <para> - Devuelve el arco seno de arg en radianes.</para> - + Devuelve el arco seno de <parameter>arg</parameter> en radianes. + <function>asin</function> es la funci&oacute;n complementaria de + <function>sin</function>, lo que quiere decir que + <literal>a==sin(asin(a))</literal> para cada valor de a en el + rango de <function>asin</function>. + </para> <para> - Vea tambi&eacute;n <function>acos</function> y <function>atan</function>.</para> - + Vea tambi&eacute;n: <function>asinh</function>, + <function>acos</function>, y <function>atan</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/defined.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/misc/functions/defined.xml diff -u phpdoc-es/reference/misc/functions/defined.xml:1.1 phpdoc-es/reference/misc/functions/defined.xml:1.2 --- phpdoc-es/reference/misc/functions/defined.xml:1.1 Sun Apr 14 20:16:14 2002 +++ phpdoc-es/reference/misc/functions/defined.xml Sat Jul 23 11:22:35 2005 @@ -1,26 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/misc.xml, last change in rev 1.1 --> -<!-- last change to 'defined' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 --> <refentry id="function.defined"> <refnamediv> - <refname>defined</refname> - <refpurpose>Comprueba que una constante con nombre dada existe.</refpurpose> + <refname>defined</refname> + <refpurpose> + Verifica si una constante dada existe + </refpurpose> </refnamediv> <refsect1> - <title>Descripci&oacute;n</title> + <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>defined</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> + <type>bool</type><methodname>defined</methodname> + <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> - - <para> - Devuelve &true; si la constante con nombre dada en - <parameter>name</parameter> (nombre) ha sido definida, &false; en otro caso.</para> - - <para> - V&eacute;ase tambi&eacute;n <function>define</function> y la secci&oacute;n - <link linkend="language.constants">Constantes</link>.</para> - + <para> + Devuelve &true; si la constante nombrada por + <parameter>nombre</parameter> ha sido definida, &false; de lo + contrario. + </para> + <para> + <example> + <title>Chequeo de Constantes</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* Note el uso de comillas, esto es importante. Este ejemplo verifica si + * la cadena 'CONSTANTE' es el nombre de una constante llamada CONSTANTE */ +if (defined('CONSTANTE')) { + echo CONSTANTE; +} +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + Si desea saber si una variable existe, use + <function>isset</function> ya que <function>defined</function> + s&oacute;lo se aplica a <link + linkend="language.constants">constantes</link>. Si desea saber + si una funci&oacute;n existe, use + <function>function_exists</function>. + </para> + </note> + <para> + Vea tambi&eacute;n <function>define</function>, + <function>constant</function>, + <function>get_defined_constants</function>, + <function>function_exists</function>, y la secci&oacute;n sobre + <link linkend="language.constants">Constantes</link>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/flush.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/flush.xml diff -u phpdoc-es/reference/outcontrol/functions/flush.xml:1.1 phpdoc-es/reference/outcontrol/functions/flush.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/flush.xml:1.1 Sun Apr 14 20:17:19 2002 +++ phpdoc-es/reference/outcontrol/functions/flush.xml Sat Jul 23 11:22:35 2005 @@ -1,22 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'flush' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.flush"> <refnamediv> - <refname>flush</refname> - <refpurpose>Flush the output buffer</refpurpose> + <refname>flush</refname> + <refpurpose>Vaciar el b&uacute;fer de salida</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>flush</methodname> <void/> </methodsynopsis> <simpara> - Flushes the output buffers of PHP and whatever backend PHP is - using (CGI, a web server, etc.) This effectively tries to push - all the output so far to the user's browser. + Vac&iacute;a los b&uacute;feres de salida de PHP y de cualquiera + que sea el motor que PHP est&eacute; usando (CGI, un servidor + web, etc). Esto en efecto trata de enviar toda la salida + acumulada hasta el momento al navegador del usuario. </simpara> + <para> + <function>flush</function> no tiene efectos sobre el + m&eacute;todo de uso de b&uacute;feres de su servidor web o del + navegador en el lado del cliente. Por lo tanto es necesario + llamar tanto a <function>ob_flush</function> como a + <function>flush</function> para volcar los b&uacute;feres de + salida. + </para> + <para> + Varios servidores, especialmente en Win32, seguir&aacute;n + almacenando la salida de su script en b&uacute;feres hasta que + &eacute;ste termine antes de transmitir los resultados al + navegador. + </para> + <para> + Puede que algunos m&oacute;dulos de servidor para Apache como + mod_gzip usen b&uacute;feres propios que causar&aacute;n que + <function>flush</function> no resulte en un env&iacute;o + inmediato de datos al cliente. + </para> + <para> + Incluso el navegador puede usar b&uacute;feres de entrada antes + de mostrar el resultado. Netscape, por ejemplo, almacena en + b&uacute;fer el texto hasta que recibe un final-de-l&iacute;nea o + el comienzo de una etiqueta, y no renderiza las tablas hasta que + la etiqueta &lt;/table&gt; de la tabla m&aacute;s externa sea + encontrada. + </para> + <para> + Algunas versiones de Microsoft Internet Explorer solo + empezar&aacute;n a desplegar la p&aacute;gina despu&eacute;s de + que han recibido 256 bytes de salida, as&iacute; que puede que + sea necesario enviar espacios en blanco extra antes del volcado + para lograr que se despliegue la p&aacute;gina en esos + navegadores. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml diff -u phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml:1.1 phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml:1.1 Sun Apr 14 20:17:20 2002 +++ phpdoc-es/reference/outcontrol/functions/ob-end-clean.xml Sat Jul 23 11:22:35 2005 @@ -1,26 +1,62 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'ob-end-clean' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-end-clean"> <refnamediv> - <refname>ob_end_clean</refname> + <refname>ob_end_clean</refname> <refpurpose> - Clean (erase) the output buffer and turn off output buffering + Limpiar (eliminar) y deshabilitar los b&uacute;feres de salida </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> - <type>void</type><methodname>ob_end_clean</methodname> + <type>bool</type><methodname>ob_end_clean</methodname> <void/> </methodsynopsis> <para> - This function discards the contents of the output buffer and - turns off output buffering. + Esta funci&oacute;n descarta los contenidos del b&uacute;fer de + salida en cola y lo deshabilita. Si desea continuar procesando + los contenidos del b&uacute;fer debe llamar + <function>ob_get_contents</function> antes de + <function>ob_end_clean</function> ya que los contenidos del + b&uacute;fer son descartados cuando se llama + <function>ob_end_flush</function>. La funci&oacute;n devuelve + &true; cuando se descarta con &eacute;xito un b&uacute;fer y + &false; de lo contrario. Entre las posibles razones de fallo se + encuentra llamar la funci&oacute;n sin un b&uacute;fer activo, o + que por alg&uacute;n motivo no se pueda eliminar un b&uacute;fer + (posible en el caso de b&uacute;feres especiales). </para> <para> - See also <function>ob_start</function> and - <function>ob_end_flush</function>. + El siguiente ejemplo muestra una forma sencilla de deshacerse de + todos los b&uacute;feres de salida: + </para> + <para> + <example> + <title>Ejemplo de <function>ob_end_clean</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +while (@ob_end_clean()); +?> +]]> + </programlisting> + </example> + </para> + <note> + <simpara> + Si la funci&oacute;n falla, genera un E_NOTICE. + </simpara> + <simpara> + El valor de retorno fue agregado en PHP 4.2.0. + </simpara> + </note> + <para> + Vea tambi&eacute;n <function>ob_start</function>, + <function>ob_get_contents</function>, y + <function>ob_flush</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml diff -u phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml:1.1 phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml:1.1 Sun Apr 14 20:17:20 2002 +++ phpdoc-es/reference/outcontrol/functions/ob-end-flush.xml Sat Jul 23 11:22:35 2005 @@ -1,31 +1,72 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'ob-end-flush' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-end-flush"> <refnamediv> - <refname>ob_end_flush</refname> + <refname>ob_end_flush</refname> <refpurpose> - Flush (send) the output buffer and turn off output buffering + Volcar (enviar) el b&uacute;fer de salida y deshabilitar el uso + del b&uacute;fer </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> - <type>void</type><methodname>ob_end_flush</methodname> + <type>bool</type><methodname>ob_end_flush</methodname> <void/> </methodsynopsis> <para> - This function will send the contents of the output buffer (if - any) and turn output buffering off. If you want to further - process the buffer's contents you have to call - <function>ob_get_contents</function> before - <function>ob_end_flush</function> as the buffer contents are - discarded after <function>ob_get_contents</function> is called. + Esta funci&oacute;n enviar&aacute; los contenidos del + b&uacute;fer de salida en cola (si existe) y deshabilita este + b&uacute;fer. Si desea procesar los contenidos del b&uacute;fer + es necesario que llame <function>ob_get_contents</function> antes + de <function>ob_end_flush</function> ya que los contenidos del + b&uacute;fer son descartados despu&eacute;s de llamar + <function>ob_end_flush</function>. La funci&oacute;n devuelve + &true; cuando descarta un b&uacute;fer con &eacute;xito y &false; + de lo contrario. Entre las posibles razones de fallo se encuentra + llamar la funci&oacute;n sin un b&uacute;fer activo, o que por + alg&uacute;n motivo el b&uacute;fer no pueda ser eliminado + (posible en el caso de b&uacute;feres especiales). </para> + <note> + <simpara> + Esta funci&oacute;n es similar a + <function>ob_get_flush</function>, excepto que + <function>ob_get_flush</function> devuelve el b&uacute;fer como + una cadena. + </simpara> + </note> <para> - See also <function>ob_start</function>, - <function>ob_get_contents</function>, and - <function>ob_end_clean</function>. + El siguiente ejemplo muestra una forma sencilla de volcar y + finalizar todos los b&uacute;feres: + </para> + <para> + <example> + <title>Ejemplo de <function>ob_end_flush</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + while (@ob_end_flush()); +?> +]]> + </programlisting> + </example> + </para> + <note> + <simpara> + Si la funci&oacute;n falla, genera un E_NOTICE. + </simpara> + <simpara> + El valor de retorn o booleano fue agregado en PHP 4.2.0. + </simpara> + </note> + <para> + Vea tambi&eacute;n <function>ob_start</function>, + <function>ob_get_contents</function>, + <function>ob_get_flush</function>, <function>ob_flush</function> + y <function>ob_end_clean</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/ob-get-length.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/ob-get-length.xml diff -u phpdoc-es/reference/outcontrol/functions/ob-get-length.xml:1.1 phpdoc-es/reference/outcontrol/functions/ob-get-length.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/ob-get-length.xml:1.1 Sun Apr 14 20:17:20 2002 +++ phpdoc-es/reference/outcontrol/functions/ob-get-length.xml Sat Jul 23 11:22:35 2005 @@ -1,25 +1,27 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'ob-get-length' in en/ tree in rev 1.22 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.22 --> <refentry id="function.ob-get-length"> <refnamediv> <refname>ob_get_length</refname> <refpurpose> - Return the length of the output buffer + Devolver la longitud del b&uacute;fer de salida </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> - <type>string</type><methodname>ob_get_length</methodname> + <type>int</type><methodname>ob_get_length</methodname> <void/> </methodsynopsis> <para> - This will return the length of the contents in the output buffer - or &false;, if output buffering isnt't active. + Esta funci&oacute;n devolver&aacute; la longitud de los + contenidos en el b&uacute;fer de salida, o &false;, si no + est&aacute; activo el uso de b&uacute;feres de salida. </para> <para> - See also <function>ob_start</function> and + Vea tambi&eacute;n <function>ob_start</function> y <function>ob_get_contents</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml diff -u phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml:1.1 phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml:1.1 Sun Apr 14 20:17:21 2002 +++ phpdoc-es/reference/outcontrol/functions/ob-implicit-flush.xml Sat Jul 23 11:22:35 2005 @@ -1,34 +1,38 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'ob-implicit-flush' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-implicit-flush"> <refnamediv> - <refname>ob_implicit_flush</refname> + <refname>ob_implicit_flush</refname> <refpurpose> - Turn implicit flush on/off + Habilitar/deshabilitar el volcado impl&iacute;cito </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>ob_implicit_flush</methodname> - <methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>bandera</parameter></methodparam> </methodsynopsis> <para> - <function>ob_implicit_flush</function> will turn implicit - flushing on or off (if no <parameter>flag</parameter> is given, - it defaults to on). Implicit flushing will result in a flush - operation after every output call, so that explicit calls to - <function>flush</function> will no longer be needed. + <function>ob_implicit_flush</function> habilitar&aacute; o + deshabilitar&aacute; el volcado impl&iacute;cito (si no se define + <parameter>bandera</parameter>, el valor predeterminado es + habilitarlo). El volcado impl&iacute;cito resultar&aacute; en una + operaci&oacute;n de volcado despu&eacute;s de cada llamada que + produzca salida, de modo que no son necesarias las llamadas + expl&iacute;citas a <function>flush</function>. </para> <para> - Turning implicit flushing on will disable output buffering, the - output buffers current output will be sent as if - <function>ob_end_flush</function> had been called. + Habilitar el volcado impl&iacute;cito deshabilitar&aacute; el uso + de b&uacute;feres de salida, el contenido actual de los + b&uacute;feres ser&aacute; enviado como si se hubiese llamado + <function>ob_end_flush</function>. </para> <para> - See also <function>flush</function>, - <function>ob_start</function>, and + Vea tambi&eacute;n <function>flush</function>, + <function>ob_start</function>, y <function>ob_end_flush</function>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/outcontrol/functions/ob-start.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/outcontrol/functions/ob-start.xml diff -u phpdoc-es/reference/outcontrol/functions/ob-start.xml:1.1 phpdoc-es/reference/outcontrol/functions/ob-start.xml:1.2 --- phpdoc-es/reference/outcontrol/functions/ob-start.xml:1.1 Sun Apr 14 20:17:21 2002 +++ phpdoc-es/reference/outcontrol/functions/ob-start.xml Sat Jul 23 11:22:35 2005 @@ -1,35 +1,170 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/outcontrol.xml, last change in rev 1.1 --> -<!-- last change to 'ob-start' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.19 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 --> <refentry id="function.ob-start"> <refnamediv> - <refname>ob_start</refname> - <refpurpose>Turn on output buffering</refpurpose> + <refname>ob_start</refname> + <refpurpose>Habilitar el uso de b&uacute;feres de + salida</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;n</title> <methodsynopsis> - <type>void</type><methodname>ob_start</methodname> - <void/> + <type>bool</type><methodname>ob_start</methodname> + <methodparam choice="opt"><type>callback</type><parameter>llamada_de_retorno_salida</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>tamanyo_segmento</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>borrar</parameter></methodparam> </methodsynopsis> <para> - This function will turn output buffering on. While output buffering - is active no output is sent from the script, instead the output - is stored in an internal buffer. + Esta funci&oacute;n habilitar&aacute; el uso de b&uacute;feres de + salida. Mientras los b&uacute;feres de salida est&aacute;n + activos no se env&iacute;a salida desde el script (m&aacute;s que + las cabeceras), en su lugar la salida es almacenada en un + b&uacute;fer interno. </para> <para> - The contents of this internal buffer may be copied into a string - variable using <function>ob_get_contents</function>. To output - what is stored in the internal buffer, use - <function>ob_end_flush</function>. Alternatively, - <function>ob_end_clean</function> will silently discard the - buffer contents. + Los contenidos de este b&uacute;fer interno pueden ser copiados a + una variable de cadena usando + <function>ob_get_contents</function>. Para producir la salida de + lo que est&aacute; almacenado en el b&uacute;fer interno, use + <function>ob_end_flush</function>. Alternativamente, + <function>ob_end_clean</function> descartar&aacute; + silenciosamente los contenidos del b&uacute;fer. </para> <para> - See also <function>ob_get_contents</function>, + Es posible especificar una funci&oacute;n opcional + <parameter>llamada_de_retorno_salida</parameter>. Esta + funci&oacute;n recibe una cadena como par&aacute;metro y debe + devolver una cadena. La funci&oacute;n ser&aacute; llamada cuando + se llame <function>ob_end_flush</function>, o cuando el + b&uacute;fer de salida sea volcado al navegador al final de la + petici&oacute;n. Cuando se llama + <parameter>output_callback</parameter>, &eacute;ste + recibir&aacute; los contenidos del b&uacute;fer de salida como su + par&aacute;metro y se espera que devuelva un nuevo b&uacute;fer + de salida como resultado, valor que ser&aacute; enviado al + navegador. Si la <parameter>llamada_de_retorno_salida</parameter> + no es una funci&oacute;n que pueda llamarse, se devolver&aacute; + &false;. Si la llamada de retorno tiene dos par&aacute;metros, el + segundo par&aacute;metro es llenado con un campo de bits + consistente de <constant>PHP_OUTPUT_HANDLER_START</constant>, + <constant>PHP_OUTPUT_HANDLER_CONT</constant> y + <constant>PHP_OUTPUT_HANDLER_END</constant>. + </para> + <note> + <para> + En PHP 4.0.4 se introdujo <function>ob_gzhandler</function> para + facilitar el env&iacute;o de datos codificados con el algoritmo + gz a navegadores web con soporte para p&aacute;ginas web + comprimidas. <function>ob_gzhandler</function> determina el + tipo de contenido que aceptar&aacute; el navegador y + devolver&aacute; su salida acordemente. + </para> + </note> + <note> + <para> + Antes de PHP 4.3.2 esta funci&oacute;n no devolv&iacute;a + &false; en caso de que + <parameter>llamada_de_retorno_salida</parameter> no pudiera + ejecutarse. + </para> + </note> + <warning> + <para> + Algunos servidores web (p.ej. Apache) modifican el directorio de + trabajo de un script cuando se ejecuta la llamada de retorno. Es + posible modificarlo de vuelta p.ej. mediante + <literal>chdir(dirname($_SERVER['SCRIPT_FILENAME']))</literal> + en la llamada de retorno. + </para> + </warning> + <para> + Si se pasa el par&aacute;metro opcional + <parameter>tamanyo_segmento</parameter>, la llamada de retorno es + ejecutada en cada primera nueva l&iacute;nea despu&eacute;s de + <parameter>tamanyo_segmento</parameter> bytes de salida. El + par&aacute;metro <parameter>llamada_de_retorno_salida</parameter> + puede evitarse pasando el valor &null;. + </para> + <para> + Si el par&aacute;metro opcional <parameter>borrar</parameter> es + definido como &false;, el b&uacute;fer no ser&aacute; eliminado + hasta que el script finalice (a partir de PHP 4.3.0). + </para> + <para> + Los b&uacute;feres de salida pueden apilarse, es decir, es + posible llamar <function>ob_start</function> mientras que otro + <function>ob_start</function> est&aacute; activo. Simplemente + aseg&uacute;rese de llamar <function>ob_end_flush</function> el + n&uacute;mero apropiado de veces. Si m&uacute;ltiples llamadas de + retorno est&aacute;n acivas, la salida es filtrada + secuencialmente a trav&eacute;s de cada una de ellas en orden de + anidamiento. + </para> + <para> + No deben llamarse <function>ob_end_clean</function>, + <function>ob_end_flush</function>, <function>ob_clean</function>, + <function>ob_flush</function> ni <function>ob_start</function> + desde una llamada de retorno. De hacerse, el comportamiento es + indefinido. Si desea eliminar los contenidos de un b&uacute;fer, + devuelva "" (una cadena nula) desde la llamada de retorno. No es + posible siquiera llamar funciones que usen el mecanismo de + b&uacute;feres de salida como <literal>print_r($expresion, + true)</literal> o <literal>highlight_file($nombre_archivo, + true)</literal> desde una llamada de retorno. + </para> + <para> + <example> + <title>Ejemplo de una llamada de retorno del usuario</title> + <programlisting role="php"> +<![CDATA[ +<?php + +function llamada_retorno($bufer) +{ + // reemplazar todas las manzanas con naranjas + return (str_replace("manzanas", "naranjas", $bufer)); +} + +ob_start("llamada_retorno"); + +?> +<html> +<body> +<p>Es como comparar manzanas con naranjas.</p> +</body> +</html> +<?php + +ob_end_flush(); + +?> +]]> + </programlisting> + <para> + Producir&iacute;a: + </para> + <screen> +<![CDATA[ +<html> +<body> +<p>Es como comparar naranjas con naranjas.</p> +</body> +</html> +]]> + </screen> + </example> + </para> + <para> + Vea tambi&eacute;n <function>ob_get_contents</function>, <function>ob_end_flush</function>, - <function>ob_end_clean</function>, and - <function>ob_implicit_flush</function> + <function>ob_end_clean</function>, + <function>ob_implicit_flush</function>, + <function>ob_gzhandler</function>, + <function>ob_iconv_handler</function> + <function>mb_output_handler</function>, f + <function>ob_tidyhandler</function>. </para> </refsect1> </refentry>
« previous php.doc.es (#1162) next »