cvs: phpdoc-es / translation.xml /appendices reserved.constants.core.xml wrappers.xml /language types.xml /reference/datetime/functions date.xml
/reference/filesystem/functions is-readable.xml /reference/funchand/functions register-shutdown-function.xml /reference/math/functions mt-rand.xml
mt-srand.xml octdec.xml /reference/misc/functions constant.xml get-browser.xml halt-compiler.xml /reference/mysql/functions
mysql-unbuffered-query.xml /reference/outcontrol/functions ob-get-flush.xml ob-list-handlers.xml output-add-rewrite-var.xml
output-reset-rewrite-vars.xml /reference/pcre pattern.syntax.xml /reference/pgsql reference.xml /reference/var/functions is-numeric.xml
| From: | Leonardo Boshell | Date: | Mon, 03 Oct 2005 04:32:41 +0000 |
| Subject: | cvs: phpdoc-es / translation.xml /appendices reserved.constants.core.xml wrappers.xml /language types.xml /reference/datetime/functions date.xml /reference/filesystem/functions is-readable.xml /reference/funchand/functions register-shutdown-function.xml /reference/math/functions mt-rand.xml mt-srand.xml octdec.xml /reference/misc/functions constant.xml get-browser.xml halt-compiler.xml /reference/mysql/functions mysql-unbuffered-query.xml /reference/outcontrol/functions ob-get-flush.xml ob-list-handlers.xml output-add-rewrite-var.xml output-reset-rewrite-vars.xml /reference/pcre pattern.syntax.xml /reference/pgsql reference.xml /reference/var/functions is-numeric.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-1271@lists.php.net to get a copy of this message | ||
lboshell Mon Oct 3 00:32:41 2005 EDT
Added files:
/phpdoc-es/reference/outcontrol/functions ob-get-flush.xml
ob-list-handlers.xml
output-add-rewrite-var.xml
output-reset-rewrite-vars.xml
Modified files:
/phpdoc-es translation.xml
/phpdoc-es/appendices reserved.constants.core.xml wrappers.xml
/phpdoc-es/language types.xml
/phpdoc-es/reference/datetime/functions date.xml
/phpdoc-es/reference/filesystem/functions is-readable.xml
/phpdoc-es/reference/funchand/functions
register-shutdown-function.xml
/phpdoc-es/reference/math/functions mt-rand.xml mt-srand.xml
octdec.xml
/phpdoc-es/reference/misc/functions constant.xml get-browser.xml
halt-compiler.xml
/phpdoc-es/reference/mysql/functions mysql-unbuffered-query.xml
/phpdoc-es/reference/pcre pattern.syntax.xml
/phpdoc-es/reference/pgsql reference.xml
/phpdoc-es/reference/var/functions is-numeric.xml
Log:
* Nuevos documentos traducidos
* Actualizaciones
* Asignacion de nuevo trabajo
* Adopcion de documentos sin encargado previo
http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.213&r2=1.214&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.213 phpdoc-es/translation.xml:1.214 --- phpdoc-es/translation.xml:1.213 Mon Sep 19 19:14:11 2005 +++ phpdoc-es/translation.xml Mon Oct 3 00:32:36 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.213 $ --> +<!-- $Revision: 1.214 $ --> <!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> <translation> @@ -121,14 +121,20 @@ <file name="reference/bcompiler/reference.xml" person="gustavo" type="translation" date="06.09.2005"/> - <file name="reference/outcontrol/functions/ob-get-flush.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/ob-list-handlers.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/output-add-rewrite-var.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/output-reset-rewrite-vars.xml" - person="lboshell" type="translation" date="19.09.2005"/> + <file name="reference/pgsql/configure.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/pgsql/constants.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/pgsql/ini.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/constants.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/functions/posix-access.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/functions/posix-mknod.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/session/functions/session-commit.xml" + person="lboshell" type="translation" date="02.10.2005"/> </work-in-progress> </translation> http://cvs.php.net/diff.php/phpdoc-es/appendices/reserved.constants.core.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-es/appendices/reserved.constants.core.xml diff -u phpdoc-es/appendices/reserved.constants.core.xml:1.9 phpdoc-es/appendices/reserved.constants.core.xml:1.10 --- phpdoc-es/appendices/reserved.constants.core.xml:1.9 Wed Jun 8 14:35:48 2005 +++ phpdoc-es/appendices/reserved.constants.core.xml Mon Oct 3 00:32:37 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.17 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> <sect2 id="reserved.constants.core"> <title>Constantes Base Predefinidas</title> <simpara> @@ -349,6 +349,17 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>__COMPILER_HALT_OFFSET__</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Disponible a partir de PHP 5.1.0 + </simpara> + </listitem> + </varlistentry> </variablelist> <para> Vea también: <link http://cvs.php.net/diff.php/phpdoc-es/appendices/wrappers.xml?r1=1.17&r2=1.18&ty=u Index: phpdoc-es/appendices/wrappers.xml diff -u phpdoc-es/appendices/wrappers.xml:1.17 phpdoc-es/appendices/wrappers.xml:1.18 --- phpdoc-es/appendices/wrappers.xml:1.17 Tue Aug 16 19:03:21 2005 +++ phpdoc-es/appendices/wrappers.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.54 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.57 Maintainer: lboshell Status: ready --> <appendix id="wrappers"> <title>Lista de Protocolos/Envolturas Soportadas</title> <para> @@ -349,8 +349,9 @@ <entry><literal>proxy</literal></entry> <entry> URI que especifica la dirección del servidor - proxy. (p.ej. - <literal>tcp://proxy.example.com:5100</literal> ). + proxy. (p.ej. <literal>tcp://proxy.example.com:5100</literal> + ). El uso de proxys HTTPS (a través de proxys HTTP) + solo funciona en PHP 5.1.0 o superior. </entry> <entry></entry> </row> @@ -549,7 +550,7 @@ <entry>0 (Comienzo del Archivo)</entry> </row> <row> - <entry><literal>proxy</literal>(PHP 5.1.0 o superior)</entry> + <entry><literal>proxy</literal> (PHP 5.1.0 o superior)</entry> <entry> Petición proxy FTP mediante un servidor proxy http. Se aplica únicamente a las operaciones de lectura de @@ -1284,6 +1285,91 @@ </para> </section> + + <section id="wrappers.expect"> + <title>Secuencias de Interacción de Procesos</title> + <simpara><filename>expect://</filename> PHP 4.3.0 y superior (PECL) + </simpara> + + <itemizedlist> + <listitem><simpara><filename>expect://comando</filename></simpara></listitem> + </itemizedlist> + + <note> + <title>Esta envoltura no está habilitada por + omisión</title> + <simpara> + Para usar la envoltura <filename>expect://</filename> es necesario + instalar la extensión <ulink + url="&url.pecl.package;expect">Expect</ulink> disponible desde + <ulink url="&url.pecl;">PECL</ulink>. + </simpara> + </note> + + <simpara> + Las secuencias abiertas mediante la envoltura + <filename>expect://</filename> ofrecen accesa a los gestores stdio, + stdout y stderr de los procesos a través de PTY. + </simpara> + + <para> + <table> + <title>Resumen de Envoltura</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Atributo</entry> + <entry>Soporte</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restricción por <link + linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry> + <entry>No</entry> + </row> + <row> + <entry>Permite Lectura</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Escritura</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Adición</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Lectura y Escritura Simultánea</entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>stat</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>unlink</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>rename</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>mkdir</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>rmdir</function></entry> + <entry>No</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </section> + </appendix> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-es/language/types.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-es/language/types.xml diff -u phpdoc-es/language/types.xml:1.13 phpdoc-es/language/types.xml:1.14 --- phpdoc-es/language/types.xml:1.13 Mon Sep 19 19:14:13 2005 +++ phpdoc-es/language/types.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.154 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.155 Maintainer: lboshell Status: ready --> <chapter id="language.types"> <title>Tipos</title> @@ -2119,7 +2119,7 @@ while (false !== ($archivo = readdir($gestor))) { $archivos[] = $archivo; } -closedir($gestor); +closedir($gestor); ?> ]]> </programlisting> @@ -2222,7 +2222,7 @@ { function hacer_foo() { - echo "Haciendo foo."; + echo "Haciendo foo."; } } @@ -2247,10 +2247,12 @@ Si un objeto es convertido a un objeto, éste no es modificado. Si un valor de cualquier otro tipo es convertido a objeto, una nueva instancia de la clase - <literal>stdClass</literal> es creada. Si el valor era nulo, la - nueva instancia será vacía. Para cualquier otro - valor, una variable miembro llamada <literal>scalar</literal> - contendrá el valor. + <literal>stdClass</literal> es creada. Si el valor era &null;, la + nueva instancia será vacía. Las matrices son + convertidas a objeto usando las claves de la matriz como nombres + de propiedades y con sus valores correspondientes. Para cualquier + otro valor, una variable miembro llamada + <literal>scalar</literal> contendrá el valor. <informalexample> <programlisting role="php"> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/datetime/functions/date.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-es/reference/datetime/functions/date.xml diff -u phpdoc-es/reference/datetime/functions/date.xml:1.7 phpdoc-es/reference/datetime/functions/date.xml:1.8 --- phpdoc-es/reference/datetime/functions/date.xml:1.7 Mon Sep 19 19:14:15 2005 +++ phpdoc-es/reference/datetime/functions/date.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.23 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.date"> <refnamediv> @@ -429,7 +429,8 @@ </para> <para> Para dar formato a fechas en otros idiomas, debe usar las funciones - <function>setlocale</function> y <function>strftime</function>. + <function>setlocale</function> y <function>strftime</function> en + lugar de <function>date</function>. </para> <para> Vea también <function>getlastmod</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-readable.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/filesystem/functions/is-readable.xml diff -u phpdoc-es/reference/filesystem/functions/is-readable.xml:1.3 phpdoc-es/reference/filesystem/functions/is-readable.xml:1.4 --- phpdoc-es/reference/filesystem/functions/is-readable.xml:1.3 Tue Apr 19 21:51:24 2005 +++ phpdoc-es/reference/filesystem/functions/is-readable.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-readable"> <refnamediv> @@ -14,7 +14,8 @@ <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el archivo existe y es posible leerlo. + Devuelve &true; si el archivo o directorio especificado por + <parameter>nombre_archivo</parameter> existe y es posible leerlo. </para> <para> Tenga en cuenta que PHP puede estar accediendo al archivo bajo el @@ -24,7 +25,7 @@ </para> <para> <example> - <title>Ejemplo de <function>is_writable</function></title> + <title>Ejemplo de <function>is_readable</function></title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/diff.php/phpdoc-es/reference/funchand/functions/register-shutdown-function.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/funchand/functions/register-shutdown-function.xml diff -u phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.2 phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.3 --- phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.2 Mon Jul 4 19:37:56 2005 +++ phpdoc-es/reference/funchand/functions/register-shutdown-function.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.register-shutdown-function"> <refnamediv> @@ -63,7 +63,7 @@ <function>register_shutdown_function</function> es indefinida, un error de nivel <constant>E_WARNING</constant> es generado en su lugar. Asimismo, por razones internas de PHP, este error - hará referencia a <function>Unknown</function> en la + hará referencia a <literal>Unknown</literal> en la línea #0. </para> </note> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/mt-rand.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/mt-rand.xml diff -u phpdoc-es/reference/math/functions/mt-rand.xml:1.1 phpdoc-es/reference/math/functions/mt-rand.xml:1.2 --- phpdoc-es/reference/math/functions/mt-rand.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/mt-rand.xml Mon Oct 3 00:32:39 2005 @@ -1,48 +1,79 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'mt-rand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.mt-rand"> <refnamediv> <refname>mt_rand</refname> - <refpurpose>genera un valor aleatorio mejorado</refpurpose> + <refpurpose>Generar un mejor valor aleatorio</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>mt_rand</methodname> - <methodparam choice="opt"><parameter>int min</parameter></methodparam> - <methodparam choice="opt"><parameter>int max</parameter></methodparam> + <type>int</type><methodname>mt_rand</methodname> + <methodparam choice="opt"><type>int</type><parameter>min</parameter></methodparam> + <methodparam><type>int</type><parameter>max</parameter></methodparam> </methodsynopsis> - - <simpara> - Muchos generadores de números aleatorios de libcs antiguas - tienen características dudosas o desconocidas y son lentas. - Por defecto, PHP usa el generador de números aleatorios de libc - con la función <function>rand</function>. La función - <function>mt_rand</function> es un reemplazo para esta. Usa un - generador de números aleatorios con características conocidas, el - Tornado de Mersenne, que es capaz de producir números aleatorios - que incluso se pueden emplear para propósitos criptográficos y es - cuatro veces más rápido que la media de los que provee libc. La - página principal del Tornado de Mersenne puede encontrarse en - <ulink url="http://www.math.keio.ac.jp/~matumoto/emt.html">http://www.math.keio.ac.jp/~matumoto/emt.html</ulink>, - y una versión optimizada del código del TM esta disponible en - <ulink url="http://www.scp.syr.edu/~marc/hawk/twister.html">http://www.scp.syr.edu/~marc/hawk/twister.html</ulink>.</simpara> - <simpara> - Si es llamada sin los parámetros opcionales min y max - <function>mt_rand</function> devuelve un valor - pseudo-aleatorio entre 0 y RAND_MAX. Si quiere un número - aleatorio entre 5 y 15 (inclusive), use mt_rand(5,15).</simpara> + Muchos generadores de números aleatorios de bibliotecas de + C antiguas tienen características dudosas o desconocidas y + son lentos. Por omisión, PHP usa el generador de + números aleatorios de libc con la función + <function>rand</function>. La función + <function>mt_rand</function> es un reemplazo completo de esta + función. Usa un generador de números aleatorios con + características conocidas, haciendo uso del <ulink + url="&url.mersenne;">Mersenne Twister</ulink>, mecanismo que + produce números aleatorios cuatro veces más + rápido que el resultado promedio de rand() de libc. + </simpara> <simpara> - Recuerde introducir la semilla del generador de números aleatorios - antes de usar la instrucción con <function>mt_srand</function>.</simpara> + Si es llamada sin los argumentos opcionales + <parameter>min</parameter> y <parameter>max</parameter>, + <function>mt_rand</function> devuelve un valor pseudo-aleatorio + entre 0 y <constant>RAND_MAX</constant>. Si quiere un + número aleatorio entre 5 y 15 (inclusive), por ejemplo, + use <literal>mt_rand (5, 15)</literal>. + </simpara> + <para> + <example> + <title>Ejemplo de <function>mt_rand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo mt_rand() . "\n"; +echo mt_rand() . "\n"; + +echo mt_rand(5, 15); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +1604716014 +1478613278 +6 +]]> + </screen> + </example> + </para> + ¬e.randomseed; + + <note> + <para> + En versiones anteriores a 3.0.7 el significado de + <parameter>max</parameter> era + <parameter>rango</parameter>. Para obtener los mismos resultados + en estas versiones, el ejemplo corto sería + <literal>mt_rand (5, 11)</literal> para obtener un número + aleatorio entre 5 y 15. + </para> + </note> <simpara> - Vea también <function>mt_srand</function>, - <function>mt_getrandmax</function>, - <function>srand</function>, - <function>rand</function> y - <function>getrandmax</function>.</simpara> + Vea también: <function>mt_srand</function>, + <function>mt_getrandmax</function>, y <function>rand</function>. + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/mt-srand.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/mt-srand.xml diff -u phpdoc-es/reference/math/functions/mt-srand.xml:1.1 phpdoc-es/reference/math/functions/mt-srand.xml:1.2 --- phpdoc-es/reference/math/functions/mt-srand.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/mt-srand.xml Mon Oct 3 00:32:39 2005 @@ -1,37 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'mt-srand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.mt-srand"> <refnamediv> <refname>mt_srand</refname> - <refpurpose>Introduce la semilla del generador de números aleatorios mejorado</refpurpose> + <refpurpose>Alimentar la semilla del generador de números + aleotarios mejorado</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>void</type><methodname>mt_srand</methodname> - <methodparam><type>int</type><parameter>seed</parameter></methodparam> + <type>void</type><methodname>mt_srand</methodname> + <methodparam choice="opt"><type>int</type><parameter>semilla</parameter></methodparam> </methodsynopsis> - <para> - Introduce la semilla <parameter>seed</parameter> en el generador de números - aleatorios mejorado. - - <informalexample> - <programlisting> -// seed son los microsegundos desde el último segundo "entero" -mt_srand((double)microtime()*1000000); -$randval = mt_rand(); + Alimenta la semilla del generador de números aleatorios + con <parameter>semilla</parameter>. A partir de PHP 4.2.0, la + <parameter>semilla</parameter> es opcional y su valor + predeterminado es uno aleatorio. + </para> + <para> + <example> + <title>Ejemplo de <function>mt_srand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// alimentar la semilla con microsegundos +function crear_semilla() +{ + list($useg, $seg) = explode(' ', microtime()); + return (float) $seg + ((float) $useg * 100000); +} +mt_srand(crear_semilla()); +$valor_aleatorio = mt_rand(); +?> +]]> </programlisting> - </informalexample></para> - + </example> + </para> + + ¬e.randomseed; + <simpara> - Vea también <function>mt_rand</function>, - <function>mt_getrandmax</function>, - <function>srand</function>, - <function>rand</function> y - <function>getrandmax</function>.</simpara> - + Vea también: <function>mt_rand</function>, + <function>mt_getrandmax</function>, y <function>srand</function>. + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/octdec.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/octdec.xml diff -u phpdoc-es/reference/math/functions/octdec.xml:1.1 phpdoc-es/reference/math/functions/octdec.xml:1.2 --- phpdoc-es/reference/math/functions/octdec.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/octdec.xml Mon Oct 3 00:32:39 2005 @@ -1,27 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'octdec' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.octdec"> <refnamediv> - <refname>OctDec</refname> - <refpurpose>octal a decimal</refpurpose> + <refname>octdec</refname> + <refpurpose>Octal a decimal</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>octdec</methodname> - <methodparam><type>string</type><parameter>octal_string</parameter></methodparam> + <type>number</type><methodname>octdec</methodname> + <methodparam><type>string</type><parameter>cadena_octal</parameter></methodparam> </methodsynopsis> <para> - Devuelve el equivalente decimal del número octal - representado por el argumento octal_string. - OctDec convierte una cadena octal en un número decimal. El mayor - número que puede ser convertido es 17777777777 o 2147483647 en - decimal.</para> - + Devuelve el valor decimal equivalente al número octal + representado por el argumento + <parameter>cadena_octal</parameter>. El mayor número que + puede ser convertido es 17777777777 o 2147483647 en decimal. A + partir de PHP 4.1.0, esta función puede convertir + también números más grandes. Devuelve un + valor <type>float</type> en ese caso. + </para> <para> - Vea también <function>decoct</function>.</para> - + <example> + <title>Ejemplo de <function>octdec</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo octdec('77') . "\n"; +echo octdec(decoct(45)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +63 +45 +]]> + </screen> + </example> + </para> + <para> + Vea también: <function>decoct</function>, + <function>bindec</function>, <function>hexdec</function>, y + <function>base_convert</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/constant.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/misc/functions/constant.xml diff -u phpdoc-es/reference/misc/functions/constant.xml:1.3 phpdoc-es/reference/misc/functions/constant.xml:1.4 --- phpdoc-es/reference/misc/functions/constant.xml:1.3 Sun Mar 7 05:30:34 2004 +++ phpdoc-es/reference/misc/functions/constant.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.38 --> <refentry id="function.constant"> <refnamediv> @@ -23,6 +23,10 @@ nombre. Esto quiere decir, si está almacenada en una variable o es devuelta por una función. </simpara> + <simpara> + Esta función trabaja también con las <link + linkend="language.oop5.constants">constantes de clase</link>. + </simpara> <para> <example> <title>Ejemplo de <function>constant</function></title> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/get-browser.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/misc/functions/get-browser.xml diff -u phpdoc-es/reference/misc/functions/get-browser.xml:1.6 phpdoc-es/reference/misc/functions/get-browser.xml:1.7 --- phpdoc-es/reference/misc/functions/get-browser.xml:1.6 Sat Jun 25 09:27:59 2005 +++ phpdoc-es/reference/misc/functions/get-browser.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 --> <refentry id="function.get-browser"> <refnamediv> @@ -23,11 +23,11 @@ <filename>browscap.ini</filename>. </para> <para> - Por defecto, se utiliza el valor de - <varname>$_SERVER['HTTP_USER_AGENT']</varname>; sin embargo, - puede alterar este comportamiento (es decir, consultar la - información de otro navegador) pasando el parámetro - opcional <parameter>agente_usuario</parameter> a + Por omisión, se utiliza el valor de la cabecera HTTP + User-Agent; sin embargo, puede alterar este comportamiento (es + decir, consultar la información de otro navegador) pasando + el parámetro opcional + <parameter>agente_usuario</parameter> a <function>get_browser</function>. Es posible ignorar el parámetro <parameter>agente_usuario</parameter> con el valor &null;. http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/halt-compiler.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/misc/functions/halt-compiler.xml diff -u phpdoc-es/reference/misc/functions/halt-compiler.xml:1.1 phpdoc-es/reference/misc/functions/halt-compiler.xml:1.2 --- phpdoc-es/reference/misc/functions/halt-compiler.xml:1.1 Mon Sep 19 19:14:22 2005 +++ phpdoc-es/reference/misc/functions/halt-compiler.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.halt-compiler"> <refnamediv> <refname>__halt_compiler</refname> @@ -18,6 +18,11 @@ Esta función detiene la ejecución del compilador. Esto puede ser útil para embeber datos en scripts PHP, como ocurre con los archivos de instalación. + La posición del byte al comienzo de los datos puede ser + determinada por la constante + <constant>__COMPILER_HALT_OFFSET__</constant>, la cual es definida + únicamente si hay una función + <function>__halt_compiler</function> presente en el archivo. </para> <note> <para> @@ -40,15 +45,13 @@ $aa = fopen(__FILE__, 'r'); // acomodar el apuntador de archivo a los datos -// mas el salto de linea (eso depende en el formato de archivos/SO) -fseek($aa, __COMPILER_HALT_OFFSET__ + strlen(PHP_EOL)); +fseek($aa, __COMPILER_HALT_OFFSET__); // e implimir var_dump(stream_get_contents($aa)); // final de ejecucion del script -__halt_compiler(); -los datos de instalacion (p.ej. tar, gz, etc..) +__halt_compiler();los datos de instalacion (p.ej. tar, gz, PHP, etc..) ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.3 Fri Apr 29 00:29:25 2005 +++ phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <refentry id="function.mysql-unbuffered-query"> <refnamediv> <refname>mysql_unbuffered_query</refname> @@ -52,14 +52,14 @@ &reftitle.returnvalues; <para> Para sentencias SELECT, SHOW, DESCRIBE o EXPLAIN, - <function>mysql_query</function> devuelve un valor + <function>mysql_unbuffered_query</function> devuelve un valor <type>resource</type> en caso de éxito, o &false; si ocurre un error. </para> <para> Para otro tipo de sentencias SQL, UPDATE, DELETE, DROP, etc, - <function>mysql_query</function> devuelve &true; en caso de - éxito o &false; si ocurre un error. + <function>mysql_unbuffered_query</function> devuelve &true; en caso + de éxito o &false; si ocurre un error. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/pcre/pattern.syntax.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/pcre/pattern.syntax.xml diff -u phpdoc-es/reference/pcre/pattern.syntax.xml:1.6 phpdoc-es/reference/pcre/pattern.syntax.xml:1.7 --- phpdoc-es/reference/pcre/pattern.syntax.xml:1.6 Sat Jun 25 09:28:00 2005 +++ phpdoc-es/reference/pcre/pattern.syntax.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 --> <refentry id="reference.pcre.pattern.syntax"> <refnamediv> @@ -71,7 +71,7 @@ Aunque los caracteres de cero binario son soportados en la cadena de asunto, no son permitidos en una cadena de patrón porque éstas son pasadas como un cadena - normal de C, terminada en cero. La secuencia de escape "\0" + normal de C, terminada en cero. La secuencia de escape "\x00" puede ser usada en el patrón para representar el cero binario. </simpara> @@ -336,6 +336,15 @@ representa a él mismo. En particular, si desea crear una coincidencia con una barra invertida, escriba "\\". </para> + <note> + <para> + Las <link linkend="language.types.string.syntax">cadenas</link> + de PHP entre comillas sencillas y dobles tienen un significado + especial para la barra invertida. Por lo tanto si \ debe ser + coincidente con una expresión regular \\, entonces debe + usarse "\\\\" o '\\\\' en código PHP. + </para> + </note> <para> Si un patrón es compilado con la opción <link linkend="reference.pcre.pattern.modifiers">PCRE_EXTENDED</link>, http://cvs.php.net/diff.php/phpdoc-es/reference/pgsql/reference.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc-es/reference/pgsql/reference.xml diff -u phpdoc-es/reference/pgsql/reference.xml:1.12 phpdoc-es/reference/pgsql/reference.xml:1.13 --- phpdoc-es/reference/pgsql/reference.xml:1.12 Mon Sep 19 19:14:24 2005 +++ phpdoc-es/reference/pgsql/reference.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> @@ -117,8 +117,7 @@ <![CDATA[ <?php // Conexion, seleccion de base de datos -$bd = pg_connect("host=localhost dbname=publicaciones user=www - password=foo"); +$conexion_bd = pg_connect("host=localhost dbname=publicaciones user=www password=foo"); or die('No pudo conectarse: ' . pg_last_error()); // Realizar una consulta SQL @@ -140,7 +139,7 @@ pg_free_result($resultado); // Cerrar conexion -pg_close($enlace); +pg_close($conexion_bd); ?> ]]> http://cvs.php.net/diff.php/phpdoc-es/reference/var/functions/is-numeric.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/var/functions/is-numeric.xml diff -u phpdoc-es/reference/var/functions/is-numeric.xml:1.2 phpdoc-es/reference/var/functions/is-numeric.xml:1.3 --- phpdoc-es/reference/var/functions/is-numeric.xml:1.2 Sun May 8 12:38:14 2005 +++ phpdoc-es/reference/var/functions/is-numeric.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.is-numeric"> <refnamediv> <refname>is_numeric</refname> @@ -16,7 +16,14 @@ <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> <para> - Encuentra si la variable dada es numérica. + Encuentra si la variable dada es numérica. Las cadenas + numéricas consisten de un signo opcional, cualquier + número de dígitos, una parte decimal opcional y una + parte exponencial opcional. Por lo tanto, + <literal>+0123.45e6</literal> es un valor numérico + válido. La notación hexadecimal + (<literal>0xFF</literal>) es permitida también pero solo sin + partes de signo, valor decimal y valor exponencial. </para> </refsect1> <refsect1 role="parameters"> @@ -45,6 +52,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>ctype_digit</function></member> <member><function>is_bool</function></member> <member><function>is_null</function></member> <member><function>is_float</function></member> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-flush"> <refnamediv> <refname>ob_get_flush</refname> <refpurpose> Volcar el búfer de salida, devolverlo como una cadena y deshabilitar el uso de búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_get_flush</methodname> <void/> </methodsynopsis> <para> <function>ob_get_flush</function> vuelca el búfer de salida, lo devuelve como una cadena y deshabilita el uso de búferes de salida. <function>ob_get_flush</function> devuelve &false; si el uso de búferes no está activo. </para> <note> <simpara> Esta función es similar a <function>ob_end_flush</function>, excepto que esta función devuelve el búfer como una cadena. </simpara> </note> <para> <example> <title>Ejemplo de <function>ob_get_flush</function></title> <programlisting role="php"> <![CDATA[ <?php //usando output_buffering=On print_r(ob_list_handlers()); //guardar bufer en un archivo $bufer = ob_get_flush(); file_put_contents('bufer.txt', $bufer); print_r(ob_list_handlers()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [0] => default output handler ) Array ( ) ]]> </screen> </example> </para> <para> Vea también <function>ob_end_clean</function>, <function>ob_end_flush</function> y <function>ob_list_handlers</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml +++ phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <refentry id="function.ob-list-handlers"> <refnamediv> <refname>ob_list_handlers</refname> <refpurpose> Listar todos los gestores de salida en uso </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>ob_list_handlers</methodname> <void/> </methodsynopsis> <para> Esta función devolverá una matriz con los gestores de salida en uso (si existen). Si <link linkend="ini.output-buffering">output_buffering</link> está habilitado o una función anónima fue usada con <function>ob_start</function>, <function>ob_list_handlers</function> devolverá "default output handler" (gestor de salida predeterminado). </para> <para> <example> <title>Ejemplo de <function>ob_list_handlers</function></title> <programlisting role="php"> <![CDATA[ <?php //usando output_buffering=On print_r(ob_list_handlers()); ob_end_flush(); ob_start("ob_gzhandler"); print_r(ob_list_handlers()); ob_end_flush(); // funciones anonimas ob_start(create_function('$cadena', 'return $cadena;')); print_r(ob_list_handlers()); ob_end_flush(); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => default output handler ) ]]> </screen> </example> </para> <para> Vea también <function>ob_end_clean</function>, <function>ob_end_flush</function>, <function>ob_get_flush</function>, <function>ob_start</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml +++ phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.output-add-rewrite-var"> <refnamediv> <refname>output_add_rewrite_var</refname> <refpurpose> Agregar valores de re-escritura de URL </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>output_add_rewrite_var</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> <methodparam><type>string</type><parameter>valor</parameter></methodparam> </methodsynopsis> <para> Esta función re-escribe las URLs y formularios con la variable dada. </para> <note> <simpara> Esta función coloca la salida en un búfer. </simpara> </note> <para> <example> <title>Ejemplo de <function>output_add_rewrite_var</function></title> <programlisting role="php"> <![CDATA[ <?php output_add_rewrite_var('var', 'valor'); // un enlace echo '<a href="archivo.php">enlace</a>'; // un formulario echo '<form action="script.php" method="post"> <input type="text" name="var2" /> </form>'; print_r(ob_list_handlers()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <a href="archivo.php?var=valor">enlace</a> <form action="script.php" method="post"> <input type="hidden" name="var" value="value" /> <input type="text" name="var2" /> </form> Array ( [0] => URL-Rewriter ) ]]> </screen> </example> </para> <para> Vea también <function>output_reset_rewrite_vars</function>, <function>ob_flush</function> y <function>ob_list_handlers</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml +++ phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.output-reset-rewrite-vars"> <refnamediv> <refname>output_reset_rewrite_vars</refname> <refpurpose> Reestablecer los valores del mecanismo de re-escritura de URLs </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>output_reset_rewrite_vars</methodname> <void/> </methodsynopsis> <para> Esta función reestablece el mecanismo de re-escritura de URLs y deshace los cambios hechos por <function>output_add_rewrite_var</function> o por <function>session_start</function> que aun se encuentren en el búfer. </para> <para> <example> <title>Ejemplo de <function>output_reset_rewrite_vars</function></title> <programlisting role="php"> <![CDATA[ <?php session_start(); output_add_rewrite_var('var', 'valor'); echo '<a href="archivo.php">enlace</a>'; ob_flush(); output_reset_rewrite_vars(); echo '<a href="archivo.php">enlace</a>'; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <a href="archivo.php?PHPSESSID=xxx&var=valor">enlace</a> <a href="archivo.php">enlace</a> ]]> </screen> </example> </para> <para> Vea también <function>output_add_rewrite_var</function>, <function>ob_flush</function>, <function>ob_list_handlers</function> y <function>session_start</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 -->
http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.213&r2=1.214&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.213 phpdoc-es/translation.xml:1.214 --- phpdoc-es/translation.xml:1.213 Mon Sep 19 19:14:11 2005 +++ phpdoc-es/translation.xml Mon Oct 3 00:32:36 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.213 $ --> +<!-- $Revision: 1.214 $ --> <!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> <translation> @@ -121,14 +121,20 @@ <file name="reference/bcompiler/reference.xml" person="gustavo" type="translation" date="06.09.2005"/> - <file name="reference/outcontrol/functions/ob-get-flush.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/ob-list-handlers.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/output-add-rewrite-var.xml" - person="lboshell" type="translation" date="19.09.2005"/> - <file name="reference/outcontrol/functions/output-reset-rewrite-vars.xml" - person="lboshell" type="translation" date="19.09.2005"/> + <file name="reference/pgsql/configure.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/pgsql/constants.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/pgsql/ini.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/constants.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/functions/posix-access.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/posix/functions/posix-mknod.xml" + person="lboshell" type="translation" date="02.10.2005"/> + <file name="reference/session/functions/session-commit.xml" + person="lboshell" type="translation" date="02.10.2005"/> </work-in-progress> </translation> http://cvs.php.net/diff.php/phpdoc-es/appendices/reserved.constants.core.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-es/appendices/reserved.constants.core.xml diff -u phpdoc-es/appendices/reserved.constants.core.xml:1.9 phpdoc-es/appendices/reserved.constants.core.xml:1.10 --- phpdoc-es/appendices/reserved.constants.core.xml:1.9 Wed Jun 8 14:35:48 2005 +++ phpdoc-es/appendices/reserved.constants.core.xml Mon Oct 3 00:32:37 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.17 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> <sect2 id="reserved.constants.core"> <title>Constantes Base Predefinidas</title> <simpara> @@ -349,6 +349,17 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>__COMPILER_HALT_OFFSET__</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Disponible a partir de PHP 5.1.0 + </simpara> + </listitem> + </varlistentry> </variablelist> <para> Vea también: <link http://cvs.php.net/diff.php/phpdoc-es/appendices/wrappers.xml?r1=1.17&r2=1.18&ty=u Index: phpdoc-es/appendices/wrappers.xml diff -u phpdoc-es/appendices/wrappers.xml:1.17 phpdoc-es/appendices/wrappers.xml:1.18 --- phpdoc-es/appendices/wrappers.xml:1.17 Tue Aug 16 19:03:21 2005 +++ phpdoc-es/appendices/wrappers.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.54 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.57 Maintainer: lboshell Status: ready --> <appendix id="wrappers"> <title>Lista de Protocolos/Envolturas Soportadas</title> <para> @@ -349,8 +349,9 @@ <entry><literal>proxy</literal></entry> <entry> URI que especifica la dirección del servidor - proxy. (p.ej. - <literal>tcp://proxy.example.com:5100</literal> ). + proxy. (p.ej. <literal>tcp://proxy.example.com:5100</literal> + ). El uso de proxys HTTPS (a través de proxys HTTP) + solo funciona en PHP 5.1.0 o superior. </entry> <entry></entry> </row> @@ -549,7 +550,7 @@ <entry>0 (Comienzo del Archivo)</entry> </row> <row> - <entry><literal>proxy</literal>(PHP 5.1.0 o superior)</entry> + <entry><literal>proxy</literal> (PHP 5.1.0 o superior)</entry> <entry> Petición proxy FTP mediante un servidor proxy http. Se aplica únicamente a las operaciones de lectura de @@ -1284,6 +1285,91 @@ </para> </section> + + <section id="wrappers.expect"> + <title>Secuencias de Interacción de Procesos</title> + <simpara><filename>expect://</filename> PHP 4.3.0 y superior (PECL) + </simpara> + + <itemizedlist> + <listitem><simpara><filename>expect://comando</filename></simpara></listitem> + </itemizedlist> + + <note> + <title>Esta envoltura no está habilitada por + omisión</title> + <simpara> + Para usar la envoltura <filename>expect://</filename> es necesario + instalar la extensión <ulink + url="&url.pecl.package;expect">Expect</ulink> disponible desde + <ulink url="&url.pecl;">PECL</ulink>. + </simpara> + </note> + + <simpara> + Las secuencias abiertas mediante la envoltura + <filename>expect://</filename> ofrecen accesa a los gestores stdio, + stdout y stderr de los procesos a través de PTY. + </simpara> + + <para> + <table> + <title>Resumen de Envoltura</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Atributo</entry> + <entry>Soporte</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restricción por <link + linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry> + <entry>No</entry> + </row> + <row> + <entry>Permite Lectura</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Escritura</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Adición</entry> + <entry>Si</entry> + </row> + <row> + <entry>Permite Lectura y Escritura Simultánea</entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>stat</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>unlink</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>rename</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>mkdir</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Soporte <function>rmdir</function></entry> + <entry>No</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </section> + </appendix> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-es/language/types.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-es/language/types.xml diff -u phpdoc-es/language/types.xml:1.13 phpdoc-es/language/types.xml:1.14 --- phpdoc-es/language/types.xml:1.13 Mon Sep 19 19:14:13 2005 +++ phpdoc-es/language/types.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.154 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.155 Maintainer: lboshell Status: ready --> <chapter id="language.types"> <title>Tipos</title> @@ -2119,7 +2119,7 @@ while (false !== ($archivo = readdir($gestor))) { $archivos[] = $archivo; } -closedir($gestor); +closedir($gestor); ?> ]]> </programlisting> @@ -2222,7 +2222,7 @@ { function hacer_foo() { - echo "Haciendo foo."; + echo "Haciendo foo."; } } @@ -2247,10 +2247,12 @@ Si un objeto es convertido a un objeto, éste no es modificado. Si un valor de cualquier otro tipo es convertido a objeto, una nueva instancia de la clase - <literal>stdClass</literal> es creada. Si el valor era nulo, la - nueva instancia será vacía. Para cualquier otro - valor, una variable miembro llamada <literal>scalar</literal> - contendrá el valor. + <literal>stdClass</literal> es creada. Si el valor era &null;, la + nueva instancia será vacía. Las matrices son + convertidas a objeto usando las claves de la matriz como nombres + de propiedades y con sus valores correspondientes. Para cualquier + otro valor, una variable miembro llamada + <literal>scalar</literal> contendrá el valor. <informalexample> <programlisting role="php"> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/datetime/functions/date.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-es/reference/datetime/functions/date.xml diff -u phpdoc-es/reference/datetime/functions/date.xml:1.7 phpdoc-es/reference/datetime/functions/date.xml:1.8 --- phpdoc-es/reference/datetime/functions/date.xml:1.7 Mon Sep 19 19:14:15 2005 +++ phpdoc-es/reference/datetime/functions/date.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.23 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.date"> <refnamediv> @@ -429,7 +429,8 @@ </para> <para> Para dar formato a fechas en otros idiomas, debe usar las funciones - <function>setlocale</function> y <function>strftime</function>. + <function>setlocale</function> y <function>strftime</function> en + lugar de <function>date</function>. </para> <para> Vea también <function>getlastmod</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/is-readable.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/filesystem/functions/is-readable.xml diff -u phpdoc-es/reference/filesystem/functions/is-readable.xml:1.3 phpdoc-es/reference/filesystem/functions/is-readable.xml:1.4 --- phpdoc-es/reference/filesystem/functions/is-readable.xml:1.3 Tue Apr 19 21:51:24 2005 +++ phpdoc-es/reference/filesystem/functions/is-readable.xml Mon Oct 3 00:32:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.is-readable"> <refnamediv> @@ -14,7 +14,8 @@ <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> </methodsynopsis> <para> - Devuelve &true; si el archivo existe y es posible leerlo. + Devuelve &true; si el archivo o directorio especificado por + <parameter>nombre_archivo</parameter> existe y es posible leerlo. </para> <para> Tenga en cuenta que PHP puede estar accediendo al archivo bajo el @@ -24,7 +25,7 @@ </para> <para> <example> - <title>Ejemplo de <function>is_writable</function></title> + <title>Ejemplo de <function>is_readable</function></title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/diff.php/phpdoc-es/reference/funchand/functions/register-shutdown-function.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/funchand/functions/register-shutdown-function.xml diff -u phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.2 phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.3 --- phpdoc-es/reference/funchand/functions/register-shutdown-function.xml:1.2 Mon Jul 4 19:37:56 2005 +++ phpdoc-es/reference/funchand/functions/register-shutdown-function.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.register-shutdown-function"> <refnamediv> @@ -63,7 +63,7 @@ <function>register_shutdown_function</function> es indefinida, un error de nivel <constant>E_WARNING</constant> es generado en su lugar. Asimismo, por razones internas de PHP, este error - hará referencia a <function>Unknown</function> en la + hará referencia a <literal>Unknown</literal> en la línea #0. </para> </note> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/mt-rand.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/mt-rand.xml diff -u phpdoc-es/reference/math/functions/mt-rand.xml:1.1 phpdoc-es/reference/math/functions/mt-rand.xml:1.2 --- phpdoc-es/reference/math/functions/mt-rand.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/mt-rand.xml Mon Oct 3 00:32:39 2005 @@ -1,48 +1,79 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'mt-rand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.mt-rand"> <refnamediv> <refname>mt_rand</refname> - <refpurpose>genera un valor aleatorio mejorado</refpurpose> + <refpurpose>Generar un mejor valor aleatorio</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>mt_rand</methodname> - <methodparam choice="opt"><parameter>int min</parameter></methodparam> - <methodparam choice="opt"><parameter>int max</parameter></methodparam> + <type>int</type><methodname>mt_rand</methodname> + <methodparam choice="opt"><type>int</type><parameter>min</parameter></methodparam> + <methodparam><type>int</type><parameter>max</parameter></methodparam> </methodsynopsis> - - <simpara> - Muchos generadores de números aleatorios de libcs antiguas - tienen características dudosas o desconocidas y son lentas. - Por defecto, PHP usa el generador de números aleatorios de libc - con la función <function>rand</function>. La función - <function>mt_rand</function> es un reemplazo para esta. Usa un - generador de números aleatorios con características conocidas, el - Tornado de Mersenne, que es capaz de producir números aleatorios - que incluso se pueden emplear para propósitos criptográficos y es - cuatro veces más rápido que la media de los que provee libc. La - página principal del Tornado de Mersenne puede encontrarse en - <ulink url="http://www.math.keio.ac.jp/~matumoto/emt.html">http://www.math.keio.ac.jp/~matumoto/emt.html</ulink>, - y una versión optimizada del código del TM esta disponible en - <ulink url="http://www.scp.syr.edu/~marc/hawk/twister.html">http://www.scp.syr.edu/~marc/hawk/twister.html</ulink>.</simpara> - <simpara> - Si es llamada sin los parámetros opcionales min y max - <function>mt_rand</function> devuelve un valor - pseudo-aleatorio entre 0 y RAND_MAX. Si quiere un número - aleatorio entre 5 y 15 (inclusive), use mt_rand(5,15).</simpara> + Muchos generadores de números aleatorios de bibliotecas de + C antiguas tienen características dudosas o desconocidas y + son lentos. Por omisión, PHP usa el generador de + números aleatorios de libc con la función + <function>rand</function>. La función + <function>mt_rand</function> es un reemplazo completo de esta + función. Usa un generador de números aleatorios con + características conocidas, haciendo uso del <ulink + url="&url.mersenne;">Mersenne Twister</ulink>, mecanismo que + produce números aleatorios cuatro veces más + rápido que el resultado promedio de rand() de libc. + </simpara> <simpara> - Recuerde introducir la semilla del generador de números aleatorios - antes de usar la instrucción con <function>mt_srand</function>.</simpara> + Si es llamada sin los argumentos opcionales + <parameter>min</parameter> y <parameter>max</parameter>, + <function>mt_rand</function> devuelve un valor pseudo-aleatorio + entre 0 y <constant>RAND_MAX</constant>. Si quiere un + número aleatorio entre 5 y 15 (inclusive), por ejemplo, + use <literal>mt_rand (5, 15)</literal>. + </simpara> + <para> + <example> + <title>Ejemplo de <function>mt_rand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo mt_rand() . "\n"; +echo mt_rand() . "\n"; + +echo mt_rand(5, 15); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +1604716014 +1478613278 +6 +]]> + </screen> + </example> + </para> + ¬e.randomseed; + + <note> + <para> + En versiones anteriores a 3.0.7 el significado de + <parameter>max</parameter> era + <parameter>rango</parameter>. Para obtener los mismos resultados + en estas versiones, el ejemplo corto sería + <literal>mt_rand (5, 11)</literal> para obtener un número + aleatorio entre 5 y 15. + </para> + </note> <simpara> - Vea también <function>mt_srand</function>, - <function>mt_getrandmax</function>, - <function>srand</function>, - <function>rand</function> y - <function>getrandmax</function>.</simpara> + Vea también: <function>mt_srand</function>, + <function>mt_getrandmax</function>, y <function>rand</function>. + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/mt-srand.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/mt-srand.xml diff -u phpdoc-es/reference/math/functions/mt-srand.xml:1.1 phpdoc-es/reference/math/functions/mt-srand.xml:1.2 --- phpdoc-es/reference/math/functions/mt-srand.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/mt-srand.xml Mon Oct 3 00:32:39 2005 @@ -1,37 +1,51 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'mt-srand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.mt-srand"> <refnamediv> <refname>mt_srand</refname> - <refpurpose>Introduce la semilla del generador de números aleatorios mejorado</refpurpose> + <refpurpose>Alimentar la semilla del generador de números + aleotarios mejorado</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>void</type><methodname>mt_srand</methodname> - <methodparam><type>int</type><parameter>seed</parameter></methodparam> + <type>void</type><methodname>mt_srand</methodname> + <methodparam choice="opt"><type>int</type><parameter>semilla</parameter></methodparam> </methodsynopsis> - <para> - Introduce la semilla <parameter>seed</parameter> en el generador de números - aleatorios mejorado. - - <informalexample> - <programlisting> -// seed son los microsegundos desde el último segundo "entero" -mt_srand((double)microtime()*1000000); -$randval = mt_rand(); + Alimenta la semilla del generador de números aleatorios + con <parameter>semilla</parameter>. A partir de PHP 4.2.0, la + <parameter>semilla</parameter> es opcional y su valor + predeterminado es uno aleatorio. + </para> + <para> + <example> + <title>Ejemplo de <function>mt_srand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// alimentar la semilla con microsegundos +function crear_semilla() +{ + list($useg, $seg) = explode(' ', microtime()); + return (float) $seg + ((float) $useg * 100000); +} +mt_srand(crear_semilla()); +$valor_aleatorio = mt_rand(); +?> +]]> </programlisting> - </informalexample></para> - + </example> + </para> + + ¬e.randomseed; + <simpara> - Vea también <function>mt_rand</function>, - <function>mt_getrandmax</function>, - <function>srand</function>, - <function>rand</function> y - <function>getrandmax</function>.</simpara> - + Vea también: <function>mt_rand</function>, + <function>mt_getrandmax</function>, y <function>srand</function>. + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/math/functions/octdec.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/math/functions/octdec.xml diff -u phpdoc-es/reference/math/functions/octdec.xml:1.1 phpdoc-es/reference/math/functions/octdec.xml:1.2 --- phpdoc-es/reference/math/functions/octdec.xml:1.1 Sun Apr 14 20:15:53 2002 +++ phpdoc-es/reference/math/functions/octdec.xml Mon Oct 3 00:32:39 2005 @@ -1,27 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/math.xml, last change in rev 1.1 --> -<!-- last change to 'octdec' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> <refentry id="function.octdec"> <refnamediv> - <refname>OctDec</refname> - <refpurpose>octal a decimal</refpurpose> + <refname>octdec</refname> + <refpurpose>Octal a decimal</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> - <type>int</type><methodname>octdec</methodname> - <methodparam><type>string</type><parameter>octal_string</parameter></methodparam> + <type>number</type><methodname>octdec</methodname> + <methodparam><type>string</type><parameter>cadena_octal</parameter></methodparam> </methodsynopsis> <para> - Devuelve el equivalente decimal del número octal - representado por el argumento octal_string. - OctDec convierte una cadena octal en un número decimal. El mayor - número que puede ser convertido es 17777777777 o 2147483647 en - decimal.</para> - + Devuelve el valor decimal equivalente al número octal + representado por el argumento + <parameter>cadena_octal</parameter>. El mayor número que + puede ser convertido es 17777777777 o 2147483647 en decimal. A + partir de PHP 4.1.0, esta función puede convertir + también números más grandes. Devuelve un + valor <type>float</type> en ese caso. + </para> <para> - Vea también <function>decoct</function>.</para> - + <example> + <title>Ejemplo de <function>octdec</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo octdec('77') . "\n"; +echo octdec(decoct(45)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +63 +45 +]]> + </screen> + </example> + </para> + <para> + Vea también: <function>decoct</function>, + <function>bindec</function>, <function>hexdec</function>, y + <function>base_convert</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/constant.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/misc/functions/constant.xml diff -u phpdoc-es/reference/misc/functions/constant.xml:1.3 phpdoc-es/reference/misc/functions/constant.xml:1.4 --- phpdoc-es/reference/misc/functions/constant.xml:1.3 Sun Mar 7 05:30:34 2004 +++ phpdoc-es/reference/misc/functions/constant.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.38 --> <refentry id="function.constant"> <refnamediv> @@ -23,6 +23,10 @@ nombre. Esto quiere decir, si está almacenada en una variable o es devuelta por una función. </simpara> + <simpara> + Esta función trabaja también con las <link + linkend="language.oop5.constants">constantes de clase</link>. + </simpara> <para> <example> <title>Ejemplo de <function>constant</function></title> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/get-browser.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/misc/functions/get-browser.xml diff -u phpdoc-es/reference/misc/functions/get-browser.xml:1.6 phpdoc-es/reference/misc/functions/get-browser.xml:1.7 --- phpdoc-es/reference/misc/functions/get-browser.xml:1.6 Sat Jun 25 09:27:59 2005 +++ phpdoc-es/reference/misc/functions/get-browser.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 --> <refentry id="function.get-browser"> <refnamediv> @@ -23,11 +23,11 @@ <filename>browscap.ini</filename>. </para> <para> - Por defecto, se utiliza el valor de - <varname>$_SERVER['HTTP_USER_AGENT']</varname>; sin embargo, - puede alterar este comportamiento (es decir, consultar la - información de otro navegador) pasando el parámetro - opcional <parameter>agente_usuario</parameter> a + Por omisión, se utiliza el valor de la cabecera HTTP + User-Agent; sin embargo, puede alterar este comportamiento (es + decir, consultar la información de otro navegador) pasando + el parámetro opcional + <parameter>agente_usuario</parameter> a <function>get_browser</function>. Es posible ignorar el parámetro <parameter>agente_usuario</parameter> con el valor &null;. http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/halt-compiler.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/misc/functions/halt-compiler.xml diff -u phpdoc-es/reference/misc/functions/halt-compiler.xml:1.1 phpdoc-es/reference/misc/functions/halt-compiler.xml:1.2 --- phpdoc-es/reference/misc/functions/halt-compiler.xml:1.1 Mon Sep 19 19:14:22 2005 +++ phpdoc-es/reference/misc/functions/halt-compiler.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.halt-compiler"> <refnamediv> <refname>__halt_compiler</refname> @@ -18,6 +18,11 @@ Esta función detiene la ejecución del compilador. Esto puede ser útil para embeber datos en scripts PHP, como ocurre con los archivos de instalación. + La posición del byte al comienzo de los datos puede ser + determinada por la constante + <constant>__COMPILER_HALT_OFFSET__</constant>, la cual es definida + únicamente si hay una función + <function>__halt_compiler</function> presente en el archivo. </para> <note> <para> @@ -40,15 +45,13 @@ $aa = fopen(__FILE__, 'r'); // acomodar el apuntador de archivo a los datos -// mas el salto de linea (eso depende en el formato de archivos/SO) -fseek($aa, __COMPILER_HALT_OFFSET__ + strlen(PHP_EOL)); +fseek($aa, __COMPILER_HALT_OFFSET__); // e implimir var_dump(stream_get_contents($aa)); // final de ejecucion del script -__halt_compiler(); -los datos de instalacion (p.ej. tar, gz, etc..) +__halt_compiler();los datos de instalacion (p.ej. tar, gz, PHP, etc..) ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.3 phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.4 --- phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.3 Fri Apr 29 00:29:25 2005 +++ phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml Mon Oct 3 00:32:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <refentry id="function.mysql-unbuffered-query"> <refnamediv> <refname>mysql_unbuffered_query</refname> @@ -52,14 +52,14 @@ &reftitle.returnvalues; <para> Para sentencias SELECT, SHOW, DESCRIBE o EXPLAIN, - <function>mysql_query</function> devuelve un valor + <function>mysql_unbuffered_query</function> devuelve un valor <type>resource</type> en caso de éxito, o &false; si ocurre un error. </para> <para> Para otro tipo de sentencias SQL, UPDATE, DELETE, DROP, etc, - <function>mysql_query</function> devuelve &true; en caso de - éxito o &false; si ocurre un error. + <function>mysql_unbuffered_query</function> devuelve &true; en caso + de éxito o &false; si ocurre un error. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/pcre/pattern.syntax.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/pcre/pattern.syntax.xml diff -u phpdoc-es/reference/pcre/pattern.syntax.xml:1.6 phpdoc-es/reference/pcre/pattern.syntax.xml:1.7 --- phpdoc-es/reference/pcre/pattern.syntax.xml:1.6 Sat Jun 25 09:28:00 2005 +++ phpdoc-es/reference/pcre/pattern.syntax.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 --> <refentry id="reference.pcre.pattern.syntax"> <refnamediv> @@ -71,7 +71,7 @@ Aunque los caracteres de cero binario son soportados en la cadena de asunto, no son permitidos en una cadena de patrón porque éstas son pasadas como un cadena - normal de C, terminada en cero. La secuencia de escape "\0" + normal de C, terminada en cero. La secuencia de escape "\x00" puede ser usada en el patrón para representar el cero binario. </simpara> @@ -336,6 +336,15 @@ representa a él mismo. En particular, si desea crear una coincidencia con una barra invertida, escriba "\\". </para> + <note> + <para> + Las <link linkend="language.types.string.syntax">cadenas</link> + de PHP entre comillas sencillas y dobles tienen un significado + especial para la barra invertida. Por lo tanto si \ debe ser + coincidente con una expresión regular \\, entonces debe + usarse "\\\\" o '\\\\' en código PHP. + </para> + </note> <para> Si un patrón es compilado con la opción <link linkend="reference.pcre.pattern.modifiers">PCRE_EXTENDED</link>, http://cvs.php.net/diff.php/phpdoc-es/reference/pgsql/reference.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc-es/reference/pgsql/reference.xml diff -u phpdoc-es/reference/pgsql/reference.xml:1.12 phpdoc-es/reference/pgsql/reference.xml:1.13 --- phpdoc-es/reference/pgsql/reference.xml:1.12 Mon Sep 19 19:14:24 2005 +++ phpdoc-es/reference/pgsql/reference.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.27 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.28 Maintainer: lboshell Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> @@ -117,8 +117,7 @@ <![CDATA[ <?php // Conexion, seleccion de base de datos -$bd = pg_connect("host=localhost dbname=publicaciones user=www - password=foo"); +$conexion_bd = pg_connect("host=localhost dbname=publicaciones user=www password=foo"); or die('No pudo conectarse: ' . pg_last_error()); // Realizar una consulta SQL @@ -140,7 +139,7 @@ pg_free_result($resultado); // Cerrar conexion -pg_close($enlace); +pg_close($conexion_bd); ?> ]]> http://cvs.php.net/diff.php/phpdoc-es/reference/var/functions/is-numeric.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/var/functions/is-numeric.xml diff -u phpdoc-es/reference/var/functions/is-numeric.xml:1.2 phpdoc-es/reference/var/functions/is-numeric.xml:1.3 --- phpdoc-es/reference/var/functions/is-numeric.xml:1.2 Sun May 8 12:38:14 2005 +++ phpdoc-es/reference/var/functions/is-numeric.xml Mon Oct 3 00:32:40 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.is-numeric"> <refnamediv> <refname>is_numeric</refname> @@ -16,7 +16,14 @@ <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> <para> - Encuentra si la variable dada es numérica. + Encuentra si la variable dada es numérica. Las cadenas + numéricas consisten de un signo opcional, cualquier + número de dígitos, una parte decimal opcional y una + parte exponencial opcional. Por lo tanto, + <literal>+0123.45e6</literal> es un valor numérico + válido. La notación hexadecimal + (<literal>0xFF</literal>) es permitida también pero solo sin + partes de signo, valor decimal y valor exponencial. </para> </refsect1> <refsect1 role="parameters"> @@ -45,6 +52,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>ctype_digit</function></member> <member><function>is_bool</function></member> <member><function>is_null</function></member> <member><function>is_float</function></member> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml +++ phpdoc-es/reference/outcontrol/functions/ob-get-flush.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.ob-get-flush"> <refnamediv> <refname>ob_get_flush</refname> <refpurpose> Volcar el búfer de salida, devolverlo como una cadena y deshabilitar el uso de búferes de salida </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>ob_get_flush</methodname> <void/> </methodsynopsis> <para> <function>ob_get_flush</function> vuelca el búfer de salida, lo devuelve como una cadena y deshabilita el uso de búferes de salida. <function>ob_get_flush</function> devuelve &false; si el uso de búferes no está activo. </para> <note> <simpara> Esta función es similar a <function>ob_end_flush</function>, excepto que esta función devuelve el búfer como una cadena. </simpara> </note> <para> <example> <title>Ejemplo de <function>ob_get_flush</function></title> <programlisting role="php"> <![CDATA[ <?php //usando output_buffering=On print_r(ob_list_handlers()); //guardar bufer en un archivo $bufer = ob_get_flush(); file_put_contents('bufer.txt', $bufer); print_r(ob_list_handlers()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [0] => default output handler ) Array ( ) ]]> </screen> </example> </para> <para> Vea también <function>ob_end_clean</function>, <function>ob_end_flush</function> y <function>ob_list_handlers</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml +++ phpdoc-es/reference/outcontrol/functions/ob-list-handlers.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <refentry id="function.ob-list-handlers"> <refnamediv> <refname>ob_list_handlers</refname> <refpurpose> Listar todos los gestores de salida en uso </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>ob_list_handlers</methodname> <void/> </methodsynopsis> <para> Esta función devolverá una matriz con los gestores de salida en uso (si existen). Si <link linkend="ini.output-buffering">output_buffering</link> está habilitado o una función anónima fue usada con <function>ob_start</function>, <function>ob_list_handlers</function> devolverá "default output handler" (gestor de salida predeterminado). </para> <para> <example> <title>Ejemplo de <function>ob_list_handlers</function></title> <programlisting role="php"> <![CDATA[ <?php //usando output_buffering=On print_r(ob_list_handlers()); ob_end_flush(); ob_start("ob_gzhandler"); print_r(ob_list_handlers()); ob_end_flush(); // funciones anonimas ob_start(create_function('$cadena', 'return $cadena;')); print_r(ob_list_handlers()); ob_end_flush(); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => default output handler ) ]]> </screen> </example> </para> <para> Vea también <function>ob_end_clean</function>, <function>ob_end_flush</function>, <function>ob_get_flush</function>, <function>ob_start</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml +++ phpdoc-es/reference/outcontrol/functions/output-add-rewrite-var.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.output-add-rewrite-var"> <refnamediv> <refname>output_add_rewrite_var</refname> <refpurpose> Agregar valores de re-escritura de URL </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>output_add_rewrite_var</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> <methodparam><type>string</type><parameter>valor</parameter></methodparam> </methodsynopsis> <para> Esta función re-escribe las URLs y formularios con la variable dada. </para> <note> <simpara> Esta función coloca la salida en un búfer. </simpara> </note> <para> <example> <title>Ejemplo de <function>output_add_rewrite_var</function></title> <programlisting role="php"> <![CDATA[ <?php output_add_rewrite_var('var', 'valor'); // un enlace echo '<a href="archivo.php">enlace</a>'; // un formulario echo '<form action="script.php" method="post"> <input type="text" name="var2" /> </form>'; print_r(ob_list_handlers()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <a href="archivo.php?var=valor">enlace</a> <form action="script.php" method="post"> <input type="hidden" name="var" value="value" /> <input type="text" name="var2" /> </form> Array ( [0] => URL-Rewriter ) ]]> </screen> </example> </para> <para> Vea también <function>output_reset_rewrite_vars</function>, <function>ob_flush</function> y <function>ob_list_handlers</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 --> http://cvs.php.net/co.php/phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml?r=1.1&p=1 Index: phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml +++ phpdoc-es/reference/outcontrol/functions/output-reset-rewrite-vars.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.output-reset-rewrite-vars"> <refnamediv> <refname>output_reset_rewrite_vars</refname> <refpurpose> Reestablecer los valores del mecanismo de re-escritura de URLs </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>output_reset_rewrite_vars</methodname> <void/> </methodsynopsis> <para> Esta función reestablece el mecanismo de re-escritura de URLs y deshace los cambios hechos por <function>output_add_rewrite_var</function> o por <function>session_start</function> que aun se encuentren en el búfer. </para> <para> <example> <title>Ejemplo de <function>output_reset_rewrite_vars</function></title> <programlisting role="php"> <![CDATA[ <?php session_start(); output_add_rewrite_var('var', 'valor'); echo '<a href="archivo.php">enlace</a>'; ob_flush(); output_reset_rewrite_vars(); echo '<a href="archivo.php">enlace</a>'; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <a href="archivo.php?PHPSESSID=xxx&var=valor">enlace</a> <a href="archivo.php">enlace</a> ]]> </screen> </example> </para> <para> Vea también <function>output_add_rewrite_var</function>, <function>ob_flush</function>, <function>ob_list_handlers</function> y <function>session_start</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 -->