cvs: phpdoc-es /appendices comparisons.xml migration5.xml /reference/classobj/functions class-exists.xml /reference/com/functions com-invoke.xml
com-load.xml com-propget.xml com-propput.xml com-propset.xml com-set.xml /reference/filesystem/functions file-put-contents.xml ftruncate.xml
/reference/ifx/functions ifx-query.xml /reference/misc/functions highlight-file.xml /reference/msql reference.xml /reference/session ini.xml
/reference/strings/functions substr-compare.xml
| From: | Leonardo Boshell | Date: | Mon, 03 Sep 2007 02:58:17 +0000 |
| Subject: | cvs: phpdoc-es /appendices comparisons.xml migration5.xml /reference/classobj/functions class-exists.xml /reference/com/functions com-invoke.xml com-load.xml com-propget.xml com-propput.xml com-propset.xml com-set.xml /reference/filesystem/functions file-put-contents.xml ftruncate.xml /reference/ifx/functions ifx-query.xml /reference/misc/functions highlight-file.xml /reference/msql reference.xml /reference/session ini.xml /reference/strings/functions substr-compare.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-1348@lists.php.net to get a copy of this message | ||
lboshell Mon Sep 3 02:58:17 2007 UTC
Modified files:
/phpdoc-es/appendices comparisons.xml migration5.xml
/phpdoc-es/reference/classobj/functions class-exists.xml
/phpdoc-es/reference/com/functions com-invoke.xml com-load.xml
com-propget.xml com-propput.xml
com-propset.xml com-set.xml
/phpdoc-es/reference/filesystem/functions file-put-contents.xml
ftruncate.xml
/phpdoc-es/reference/ifx/functions ifx-query.xml
/phpdoc-es/reference/misc/functions highlight-file.xml
/phpdoc-es/reference/msql reference.xml
/phpdoc-es/reference/session ini.xml
/phpdoc-es/reference/strings/functions substr-compare.xml
Log:
* Actualizaciones
* Uso de UTF-8
* Adopcion de documentos sin encargado previo (reference/com)
http://cvs.php.net/viewvc.cgi/phpdoc-es/appendices/comparisons.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-es/appendices/comparisons.xml diff -u phpdoc-es/appendices/comparisons.xml:1.7 phpdoc-es/appendices/comparisons.xml:1.8 --- phpdoc-es/appendices/comparisons.xml:1.7 Sun Jun 24 16:16:55 2007 +++ phpdoc-es/appendices/comparisons.xml Mon Sep 3 02:58:16 2007 @@ -1,47 +1,45 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <appendix xml:id="types.comparisons" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Tablas de comparación de tipos PHP</title> <para> Las siguientes tablas demuestran los comportamientos de los <link linkend="language.types">tipos</link> en PHP y los <link - linkend="language.operators.comparison">operadores de - comparación</link>, tanto para comparaciones flexibles como - estrictas. Este suplemento se encuentra relacionado también con la - sección del manual sobre <link - linkend="language.types.type-juggling">manipulación de - tipos</link>. La inspiración ha provenido de varios comentarios de - usuarios, y del trabajo realizado en <link + linkend="language.operators.comparison">operadores de comparación</link>, + tanto para comparaciones flexibles como estrictas. Este suplemento se + encuentra relacionado también con la sección del manual sobre <link + linkend="language.types.type-juggling">manipulación de tipos</link>. La + inspiración ha provenido de varios comentarios de usuarios, y del trabajo + realizado en <link xlink:href="&url.blueshoes.comparisons;">BlueShoes</link>. </para> <para> Antes de usar estas tablas, es importante entender los tipos y sus - significados. Por ejemplo, <literal>"42"</literal> - es <type>string</type> mientras que <literal>42</literal> es - un <type>integer</type>. &false; es un <type>boolean</type> - mientras <literal>"false"</literal> es <type>string</type>. + significados. Por ejemplo, <literal>"42"</literal> es <type>string</type> + mientras que <literal>42</literal> es un <type>integer</type>. &false; es + un <type>boolean</type> mientras <literal>"false"</literal> es + <type>string</type>. </para> <note> <para> - Los Formularios HTML no pasan enteros, reales, o valores booleanos; - ellos pasan cadenas. Para saber si una cadena es numérica, usted - puede usar <function>is_numeric</function>. + Los Formularios HTML no pasan enteros, reales, o valores booleanos; ellos + pasan cadenas. Para saber si una cadena es numérica, usted puede usar + <function>is_numeric</function>. </para> </note> <note> <para> - Hacer un simple <literal>if ($x)</literal> cuando - <varname>$x</varname> no esté definido, generará un error de nivel - <constant>E_NOTICE</constant>. En lugar de esto, considere el uso - de <function>empty</function> o <function>isset</function>, o - inicializar sus variables. + Hacer un simple <literal>if ($x)</literal> cuando <varname>$x</varname> + no esté definido, generará un error de nivel + <constant>E_NOTICE</constant>. En lugar de esto, considere el uso de + <function>empty</function> o <function>isset</function>, o inicializar + sus variables. </para> </note> <para> <table> - <title>Comparaciones de <varname>$x</varname> con funciones - PHP</title> + <title>Comparaciones de <varname>$x</varname> con funciones PHP</title> <tgroup cols="6"> <thead> <row> @@ -196,7 +194,7 @@ </para> <para> - <table> + <table xml:id="types.comparisions-loose"> <title>Comparaciones flexibles con <literal>==</literal></title> <tgroup cols="12"> <thead> @@ -403,7 +401,7 @@ </para> <para> - <table> + <table xml:id="type.comparisons-strict"> <title>Comparaciones estrictas con <literal>===</literal></title> <tgroup cols="12"> <thead> @@ -611,9 +609,9 @@ <note> <title>Nota de PHP 3.0</title> <para> - El valor de cadena <literal>"0"</literal> fue considerado como - no-vacÃo en PHP 3, este comportamiento cambió en PHP 4 en donde es - visto ahora como vacÃo. + El valor de cadena <literal>"0"</literal> fue considerado como no-vacÃo + en PHP 3, este comportamiento cambió en PHP 4 en donde es visto ahora + como vacÃo. </para> </note> </appendix> http://cvs.php.net/viewvc.cgi/phpdoc-es/appendices/migration5.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-es/appendices/migration5.xml diff -u phpdoc-es/appendices/migration5.xml:1.11 phpdoc-es/appendices/migration5.xml:1.12 --- phpdoc-es/appendices/migration5.xml:1.11 Fri Aug 24 14:16:16 2007 +++ phpdoc-es/appendices/migration5.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.54 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.56 Maintainer: lboshell Status: ready --> <appendix xml:id="migration5" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Migración desde PHP 4 a PHP 5</title> @@ -363,7 +363,7 @@ <simpara> <function>array_uintersect_uassoc</function> - Computa la intersección de matrices con un chequeo adicional de Ãndices. Tanto los datos como - los Ãndices son comparados usando llamadas de retorno + los Ãndices son comparados usando llamadas de retorno separadas </simpara> </listitem> <listitem> @@ -461,7 +461,7 @@ <listitem> <simpara> <function>ibase_server_info</function> - Solicita estadÃsticas sobre - una base de datos + un servidor de base de datos </simpara> </listitem> <listitem> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/classobj/functions/class-exists.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/classobj/functions/class-exists.xml diff -u phpdoc-es/reference/classobj/functions/class-exists.xml:1.3 phpdoc-es/reference/classobj/functions/class-exists.xml:1.4 --- phpdoc-es/reference/classobj/functions/class-exists.xml:1.3 Sat Jun 23 13:25:28 2007 +++ phpdoc-es/reference/classobj/functions/class-exists.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry xml:id="function.class-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>class_exists</refname> @@ -14,7 +14,7 @@ <methodparam choice="opt"><type>bool</type><parameter>autocargar</parameter></methodparam> </methodsynopsis> <para> - Esta función verifica si la clase dada ha sido definida. + Esta función verifica si la clase dada ha sido definida o no. </para> </refsect1> <refsect1 role="parameters"> @@ -25,7 +25,8 @@ <term><parameter>nombre_clase</parameter></term> <listitem> <para> - El nombre de la clase + El nombre de la clase. El nombre es coincidido de manera insensible a + mayúsculas y minúsculas. </para> </listitem> </varlistentry> @@ -33,7 +34,8 @@ <term><parameter>autocargar</parameter></term> <listitem> <para> - Indica si ha de llamarse &link.autoload; o no de forma predeterminada + Indica si ha de llamarse &link.autoload; o no de forma + predeterminada. Su valor predeterminado es &true;. </para> </listitem> </varlistentry> @@ -60,6 +62,13 @@ </thead> <tbody> <row> + <entry>5.0.2</entry> + <entry> + Ya no devuelve &true; para interfaces definidas. En ese caso se debe + usar <function>interface_exists</function>. + </entry> + </row> + <row> <entry>5.0.0</entry> <entry> El parámetro <parameter>autocargar</parameter> fue agregado. @@ -78,7 +87,7 @@ <programlisting role="php"> <![CDATA[ <?php -// Verificar si la clase existe antes de usarla +// Verificar que la clase exista antes de usarla if (class_exists('MiClase')) { $mi_clase = new MiClase(); } @@ -96,7 +105,7 @@ { include($clase . '.php'); - // Verificar si la sentencia include declara la clase + // Verificar si la sentencia include declaró la clase if (!class_exists($clase, false)) { trigger_error("No es posible cargar la clase: $clase", E_USER_WARNING); } @@ -116,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>function_exists</function></member> <member><function>interface_exists</function></member> <member><function>get_declared_classes</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-invoke.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-invoke.xml diff -u phpdoc-es/reference/com/functions/com-invoke.xml:1.3 phpdoc-es/reference/com/functions/com-invoke.xml:1.4 --- phpdoc-es/reference/com/functions/com-invoke.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-invoke.xml Mon Sep 3 02:58:16 2007 @@ -1,25 +1,50 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-invoke' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-invoke" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_invoke</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>mixed</type><methodname>com_invoke</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter> - function parameters, ... - </parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-invoke" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_invoke</refname> + <refpurpose> + Llama el método de un componente COM [obsoleta] + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>mixed</type><methodname>com_invoke</methodname> + <methodparam><type>resource</type><parameter>objeto_com</parameter></methodparam> + <methodparam><type>string</type><parameter>nombre_funcion</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>parametros_funcion</parameter></methodparam> + </methodsynopsis> + <para> + <function>com_invoke</function> invoca el método con el nombre + <parameter>nombre_funcion</parameter> del componente COM referenciado + por <parameter>objeto_com</parameter>. <function>com_invoke</function> + devuelve &false; en caso de fallo, devuelve el valor de retorno de + <parameter>nombre_funcion</parameter> en caso de éxito. Todos los + parámetros extra <parameter>parametros_funcion</parameter> son pasados + al método <parameter>nombre_funcion</parameter>. + </para> + <para> + <example> + <title>No use com_invoke(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$val = $obj->metodo($uno, $dos); +// en lugar de esto: +$val = com_invoke($obj, 'metodo', $uno, $dos); +?> +]]> + </programlisting> + </example> + </para> + + &reference.com.use-oo-instead; + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-load.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-load.xml diff -u phpdoc-es/reference/com/functions/com-load.xml:1.3 phpdoc-es/reference/com/functions/com-load.xml:1.4 --- phpdoc-es/reference/com/functions/com-load.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-load.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,56 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-load' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-load" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_load</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>string</type><methodname>com_load</methodname> - <methodparam><type>string</type><parameter>module name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - server name - </parameter></methodparam> - </methodsynopsis> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-load" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_load</refname> + <refpurpose> + Crea una nueva referencia a un componente COM [obsoleta] + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>resource</type><methodname>com_load</methodname> + <methodparam><type>string</type><parameter>nombre_modulo</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter> + nombre_servidor + </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter> + pagina_codigos + </parameter></methodparam> + </methodsynopsis> + <para> + Equivalente a usar el operador <literal>new</literal> para crear una + instancia de la clase <xref linkend="class.com"/>. Se recomienda el uso + orientado a objetos en lugar de llamar esta función. + </para> + <para> + <example> + <title>No use com_load(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$obj = new COM($modulo); +// en lugar de esto: +$obj = com_load($modulo); +?> +]]> + </programlisting> + </example> + </para> + + + <note> <para> + Esta función no existe en PHP 5; use la clase <xref + linkend="class.com"/> en su lugar. </para> - </refsect1> - </refentry> + </note> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propget.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propget.xml diff -u phpdoc-es/reference/com/functions/com-propget.xml:1.3 phpdoc-es/reference/com/functions/com-propget.xml:1.4 --- phpdoc-es/reference/com/functions/com-propget.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propget.xml Mon Sep 3 02:58:16 2007 @@ -1,22 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propget' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propget" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propget</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>mixed</type><methodname>com_propget</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propget" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propget</refname> + <refpurpose>&Alias; <function>com_get</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_get</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propput.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propput.xml diff -u phpdoc-es/reference/com/functions/com-propput.xml:1.3 phpdoc-es/reference/com/functions/com-propput.xml:1.4 --- phpdoc-es/reference/com/functions/com-propput.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propput.xml Mon Sep 3 02:58:16 2007 @@ -1,23 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propput' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propput" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propput</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_propput</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propput" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propput</refname> + <refpurpose>&Alias; <function>com_set</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_set</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propset.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propset.xml diff -u phpdoc-es/reference/com/functions/com-propset.xml:1.3 phpdoc-es/reference/com/functions/com-propset.xml:1.4 --- phpdoc-es/reference/com/functions/com-propset.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propset.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propset' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propset" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propset</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_propset</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - Esta función es un alias para <function>com_propput</function>. - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propset" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propset</refname> + <refpurpose>&Alias; <function>com_set</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_set</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-set.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-set.xml diff -u phpdoc-es/reference/com/functions/com-set.xml:1.3 phpdoc-es/reference/com/functions/com-set.xml:1.4 --- phpdoc-es/reference/com/functions/com-set.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-set.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,48 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-set' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-set" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_set</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_set</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - Esta función es un alias para <function>com_set</function>. - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-set" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_set</refname> + <refpurpose> + Asigna un valor a una propiedad de un componente COM + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>void</type><methodname>com_set</methodname> + <methodparam><type>resource</type><parameter>objeto_com</parameter></methodparam> + <methodparam><type>string</type><parameter>propiedad</parameter></methodparam> + <methodparam><type>mixed</type><parameter>valor</parameter></methodparam> + </methodsynopsis> + <para> + Establece el valor de la <parameter>propiedad</parameter> del componente + COM referenciado por <parameter>objeto_com</parameter>. Devuelve el + valor nuevo definido si tiene éxito, &false; en caso de error. + </para> + + <para> + <example> + <title>No use com_set(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$obj->propiedad = $valor; +// en lugar de esto: +com_set($obj, 'propiedad', $valor); +?> +]]> + </programlisting> + </example> + </para> + + + &reference.com.use-oo-instead; + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/filesystem/functions/file-put-contents.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-es/reference/filesystem/functions/file-put-contents.xml diff -u phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.11 phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.12 --- phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.11 Fri Aug 24 14:16:16 2007 +++ phpdoc-es/reference/filesystem/functions/file-put-contents.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.21 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.22 Maintainer: lboshell Status: ready --> <refentry xml:id="function.file-put-contents" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>file_put_contents</refname> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/filesystem/functions/ftruncate.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-es/reference/filesystem/functions/ftruncate.xml diff -u phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.4 phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.5 --- phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.4 Sat Jun 23 13:25:33 2007 +++ phpdoc-es/reference/filesystem/functions/ftruncate.xml Mon Sep 3 02:58:16 2007 @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 --> <refentry xml:id="function.ftruncate" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftruncate</refname> <refpurpose>Trunca un archivo a la longitud dada</refpurpose> </refnamediv> - <refsect1> - <title>Descripción</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ftruncate</methodname> <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> @@ -16,24 +16,94 @@ </methodsynopsis> <para> Toma el apuntador de archivo, <parameter>gestor</parameter>, y trunca el - archivo a la longitud <parameter>tamanyo</parameter>. &return.success; + archivo a la longitud <parameter>tamanyo</parameter>. </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>gestor</parameter></term> + <listitem> + <para> + El apuntador de archivo. + </para> + <note> + <para> + El <parameter>gestor</parameter> debe ser abierto en modo de + escritura. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>tamanyo</parameter></term> + <listitem> + <para> + El tamaño a truncar el archivo. + </para> + <note> + <para> + Si <parameter>tamanyo</parameter> es mayor que el archivo, éste será + extendido con bytes nulos. + </para> + <para> + Si <parameter>tamanyo</parameter> es menor que el archivo, los datos + extra serán perdidos. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>PHP 4.3.3</entry> + <entry> + Antes de esta versión, <function>ftruncate</function> devolvÃa un + valor <type>integer</type> de 1 en caso de éxito, en lugar del valor + <type>boolean</type> &true;. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; <note> <para> - El apuntador de archivo es modificado únicamente en modo de - <emphasis>adición</emphasis>. En modo de <emphasis>escritura</emphasis> - se requiere de una llamada adicional a <function>fseek</function>. - </para> - </note> - <note> - <para> - En versiones anteriores a PHP 4.3.3, <function>ftruncate</function> - devuelve un valor <type>integer</type> de 1 cuando tiene éxito, en lugar - del valor <type>boolean</type> &true;. + El apuntador de archivo <emphasis>no</emphasis> es modificado. </para> </note> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; <para> - Vea también <function>fopen</function> y <function>fseek</function>. + <simplelist> + <member><function>fopen</function></member> + <member><function>fseek</function></member> + </simplelist> </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/ifx/functions/ifx-query.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/ifx/functions/ifx-query.xml diff -u phpdoc-es/reference/ifx/functions/ifx-query.xml:1.5 phpdoc-es/reference/ifx/functions/ifx-query.xml:1.6 --- phpdoc-es/reference/ifx/functions/ifx-query.xml:1.5 Sat Jun 23 13:25:36 2007 +++ phpdoc-es/reference/ifx/functions/ifx-query.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <refentry xml:id="function.ifx-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ifx_query</refname> @@ -116,8 +116,7 @@ ifx_textasvarchar(1); // usar "modo de texto" para blobs $id_res = ifx_query("select * from ordenes", $id_con); if (! $id_res) { - printf("No se pueden seleccionar órdenes: %s\n<br />%s<br />\n", ifx_error()); - ifx_errormsg(); + printf("No se pueden seleccionar órdenes: %s\n<br />%s<br />\n", ifx_error(), ifx_errormsg()); die; } ifx_htmltbl_result($id_res, "border=\"1\""); http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/misc/functions/highlight-file.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-es/reference/misc/functions/highlight-file.xml diff -u phpdoc-es/reference/misc/functions/highlight-file.xml:1.14 phpdoc-es/reference/misc/functions/highlight-file.xml:1.15 --- phpdoc-es/reference/misc/functions/highlight-file.xml:1.14 Thu Jul 5 03:37:43 2007 +++ phpdoc-es/reference/misc/functions/highlight-file.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.25 Maintainer: lboshell Status: ready --> <refentry xml:id="function.highlight-file" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>highlight_file</refname> @@ -15,9 +15,9 @@ <methodparam choice="opt"><type>bool</type><parameter>devolver</parameter></methodparam> </methodsynopsis> <para> - Imprime una versión con resaltado de sintaxis del código contenido en - <parameter>nombre_archivo</parameter> usando los colores definidos en el - resaltador de sintaxis incorporado de PHP. + Imprime o devuelve una versión con resaltado de sintaxis del código + contenido en <parameter>nombre_archivo</parameter> usando los colores + definidos en el resaltador de sintaxis incorporado de PHP. </para> <para> Muchos servidores son configurados para resaltar automáticamente archivos http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/msql/reference.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-es/reference/msql/reference.xml diff -u phpdoc-es/reference/msql/reference.xml:1.8 phpdoc-es/reference/msql/reference.xml:1.9 --- phpdoc-es/reference/msql/reference.xml:1.8 Sat Jun 23 13:25:40 2007 +++ phpdoc-es/reference/msql/reference.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> @@ -12,9 +12,9 @@ <section xml:id="msql.intro"> &reftitle.intro; <para> - Estas funciones le permiten acceder a servidores de bases de datos - mSQL. Puede encontrar más información sobre mSQL en - <link xlink:href="&url.msql;">&url.msql;</link>. + Estas funciones le permiten acceder a servidores de bases de datos mSQL. + Puede encontrar más información sobre mSQL en <link + xlink:href="&url.msql;">&url.msql;</link>. </para> </section> @@ -25,10 +25,9 @@ <section xml:id="msql.resources"> &reftitle.resources; <para> - Existen dos tipos de recurso usados en el módulo mSQL. El - primero es el identificador de enlace para una conexión de - base de datos, el segundo es un recurso que contiene el resultado - de una consulta. + Existen dos tipos de recurso usados en el módulo mSQL. El primero es el + identificador de enlace para una conexión de base de datos, el segundo + es un recurso que contiene el resultado de una consulta. </para> </section> @@ -37,26 +36,26 @@ <section xml:id="msql.examples"> &reftitle.examples; <para> - Este sencillo ejemplo muestra el modo de crear una - conexión, ejecutar una consulta, imprimir las filas de - resultado y desconectarse de una base de datos mSQL. + Este sencillo ejemplo muestra el modo de crear una conexión, ejecutar + una consulta, imprimir las filas de resultado y desconectarse de una + base de datos mSQL. <example> <title>Ejemplo de uso de mSQL</title> <programlisting role="php"> <![CDATA[ <?php -/* Conexion, seleccion de una base de datos */ +/* Conexión, selección de una base de datos */ $enlace = msql_connect('localhost', 'nombre_usuario', 'contrasenya') - or die('No pudo crear una conexión: ' . msql_error($enlace)); + or die('No pudo crearse una conexión: ' . msql_error($enlace)); msql_select_db('base_de_datos', $enlace) or die('No pudo seleccionarse la base de datos'); /* Realizar una consulta SQL */ $consulta = 'SELECT * FROM mi_tabla'; -$resultado = msql_query($consulta, $enlace) or die('La consulta falló: ' . msql_error($enlace)); +$resultado = msql_query($consulta, $enlace) or die('La consulta falló: ' . msql_error()); -/* Impresion de resultados en HTML */ +/* Impresión de resultados en HTML */ echo "<table>\n"; while ($fila = msql_fetch_array($resultado, MSQL_ASSOC)) { echo "\t<tr>\n"; @@ -70,7 +69,7 @@ /* Liberar el conjunto de resultados */ msql_free_result($resultado); -/* Cerrar la conexion */ +/* Cerrar la conexión */ msql_close($enlace); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/session/ini.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.21 phpdoc-es/reference/session/ini.xml:1.22 --- phpdoc-es/reference/session/ini.xml:1.21 Fri Aug 24 14:16:17 2007 +++ phpdoc-es/reference/session/ini.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.49 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.50 Maintainer: lboshell Status: ready --> <section xml:id="session.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; @@ -19,7 +19,7 @@ <tbody> <row> <entry>session.save_path</entry> - <entry>""</entry> + <entry>"/tmp"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/strings/functions/substr-compare.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/strings/functions/substr-compare.xml diff -u phpdoc-es/reference/strings/functions/substr-compare.xml:1.5 phpdoc-es/reference/strings/functions/substr-compare.xml:1.6 --- phpdoc-es/reference/strings/functions/substr-compare.xml:1.5 Tue Jul 31 17:28:47 2007 +++ phpdoc-es/reference/strings/functions/substr-compare.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry xml:id="function.substr-compare" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>substr_compare</refname> @@ -49,7 +49,8 @@ <term><parameter>desplazamiento</parameter></term> <listitem> <para> - La posición de inicio para la comparación. + La posición de inicio para la comparación. Si es un valor negativo, + comienza contando desde el final de la cadena. </para> </listitem> </varlistentry> @@ -88,6 +89,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.1.0</entry> + <entry> + Se agregó la posibilidad de usar un + <parameter>desplazamiento</parameter> negativo. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -97,6 +123,7 @@ <![CDATA[ <?php echo substr_compare("abcde", "bc", 1, 2); // 0 +echo substr_compare("abcde", "de", -2, 2); // 0 echo substr_compare("abcde", "bcg", 1, 2); // 0 echo substr_compare("abcde", "BC", 1, 2, true); // 0 echo substr_compare("abcde", "bc", 1, 3); // 1
http://cvs.php.net/viewvc.cgi/phpdoc-es/appendices/comparisons.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-es/appendices/comparisons.xml diff -u phpdoc-es/appendices/comparisons.xml:1.7 phpdoc-es/appendices/comparisons.xml:1.8 --- phpdoc-es/appendices/comparisons.xml:1.7 Sun Jun 24 16:16:55 2007 +++ phpdoc-es/appendices/comparisons.xml Mon Sep 3 02:58:16 2007 @@ -1,47 +1,45 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.13 Maintainer: lboshell Status: ready --> <appendix xml:id="types.comparisons" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Tablas de comparación de tipos PHP</title> <para> Las siguientes tablas demuestran los comportamientos de los <link linkend="language.types">tipos</link> en PHP y los <link - linkend="language.operators.comparison">operadores de - comparación</link>, tanto para comparaciones flexibles como - estrictas. Este suplemento se encuentra relacionado también con la - sección del manual sobre <link - linkend="language.types.type-juggling">manipulación de - tipos</link>. La inspiración ha provenido de varios comentarios de - usuarios, y del trabajo realizado en <link + linkend="language.operators.comparison">operadores de comparación</link>, + tanto para comparaciones flexibles como estrictas. Este suplemento se + encuentra relacionado también con la sección del manual sobre <link + linkend="language.types.type-juggling">manipulación de tipos</link>. La + inspiración ha provenido de varios comentarios de usuarios, y del trabajo + realizado en <link xlink:href="&url.blueshoes.comparisons;">BlueShoes</link>. </para> <para> Antes de usar estas tablas, es importante entender los tipos y sus - significados. Por ejemplo, <literal>"42"</literal> - es <type>string</type> mientras que <literal>42</literal> es - un <type>integer</type>. &false; es un <type>boolean</type> - mientras <literal>"false"</literal> es <type>string</type>. + significados. Por ejemplo, <literal>"42"</literal> es <type>string</type> + mientras que <literal>42</literal> es un <type>integer</type>. &false; es + un <type>boolean</type> mientras <literal>"false"</literal> es + <type>string</type>. </para> <note> <para> - Los Formularios HTML no pasan enteros, reales, o valores booleanos; - ellos pasan cadenas. Para saber si una cadena es numérica, usted - puede usar <function>is_numeric</function>. + Los Formularios HTML no pasan enteros, reales, o valores booleanos; ellos + pasan cadenas. Para saber si una cadena es numérica, usted puede usar + <function>is_numeric</function>. </para> </note> <note> <para> - Hacer un simple <literal>if ($x)</literal> cuando - <varname>$x</varname> no esté definido, generará un error de nivel - <constant>E_NOTICE</constant>. En lugar de esto, considere el uso - de <function>empty</function> o <function>isset</function>, o - inicializar sus variables. + Hacer un simple <literal>if ($x)</literal> cuando <varname>$x</varname> + no esté definido, generará un error de nivel + <constant>E_NOTICE</constant>. En lugar de esto, considere el uso de + <function>empty</function> o <function>isset</function>, o inicializar + sus variables. </para> </note> <para> <table> - <title>Comparaciones de <varname>$x</varname> con funciones - PHP</title> + <title>Comparaciones de <varname>$x</varname> con funciones PHP</title> <tgroup cols="6"> <thead> <row> @@ -196,7 +194,7 @@ </para> <para> - <table> + <table xml:id="types.comparisions-loose"> <title>Comparaciones flexibles con <literal>==</literal></title> <tgroup cols="12"> <thead> @@ -403,7 +401,7 @@ </para> <para> - <table> + <table xml:id="type.comparisons-strict"> <title>Comparaciones estrictas con <literal>===</literal></title> <tgroup cols="12"> <thead> @@ -611,9 +609,9 @@ <note> <title>Nota de PHP 3.0</title> <para> - El valor de cadena <literal>"0"</literal> fue considerado como - no-vacÃo en PHP 3, este comportamiento cambió en PHP 4 en donde es - visto ahora como vacÃo. + El valor de cadena <literal>"0"</literal> fue considerado como no-vacÃo + en PHP 3, este comportamiento cambió en PHP 4 en donde es visto ahora + como vacÃo. </para> </note> </appendix> http://cvs.php.net/viewvc.cgi/phpdoc-es/appendices/migration5.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-es/appendices/migration5.xml diff -u phpdoc-es/appendices/migration5.xml:1.11 phpdoc-es/appendices/migration5.xml:1.12 --- phpdoc-es/appendices/migration5.xml:1.11 Fri Aug 24 14:16:16 2007 +++ phpdoc-es/appendices/migration5.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.54 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.56 Maintainer: lboshell Status: ready --> <appendix xml:id="migration5" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Migración desde PHP 4 a PHP 5</title> @@ -363,7 +363,7 @@ <simpara> <function>array_uintersect_uassoc</function> - Computa la intersección de matrices con un chequeo adicional de Ãndices. Tanto los datos como - los Ãndices son comparados usando llamadas de retorno + los Ãndices son comparados usando llamadas de retorno separadas </simpara> </listitem> <listitem> @@ -461,7 +461,7 @@ <listitem> <simpara> <function>ibase_server_info</function> - Solicita estadÃsticas sobre - una base de datos + un servidor de base de datos </simpara> </listitem> <listitem> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/classobj/functions/class-exists.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/classobj/functions/class-exists.xml diff -u phpdoc-es/reference/classobj/functions/class-exists.xml:1.3 phpdoc-es/reference/classobj/functions/class-exists.xml:1.4 --- phpdoc-es/reference/classobj/functions/class-exists.xml:1.3 Sat Jun 23 13:25:28 2007 +++ phpdoc-es/reference/classobj/functions/class-exists.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> <refentry xml:id="function.class-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>class_exists</refname> @@ -14,7 +14,7 @@ <methodparam choice="opt"><type>bool</type><parameter>autocargar</parameter></methodparam> </methodsynopsis> <para> - Esta función verifica si la clase dada ha sido definida. + Esta función verifica si la clase dada ha sido definida o no. </para> </refsect1> <refsect1 role="parameters"> @@ -25,7 +25,8 @@ <term><parameter>nombre_clase</parameter></term> <listitem> <para> - El nombre de la clase + El nombre de la clase. El nombre es coincidido de manera insensible a + mayúsculas y minúsculas. </para> </listitem> </varlistentry> @@ -33,7 +34,8 @@ <term><parameter>autocargar</parameter></term> <listitem> <para> - Indica si ha de llamarse &link.autoload; o no de forma predeterminada + Indica si ha de llamarse &link.autoload; o no de forma + predeterminada. Su valor predeterminado es &true;. </para> </listitem> </varlistentry> @@ -60,6 +62,13 @@ </thead> <tbody> <row> + <entry>5.0.2</entry> + <entry> + Ya no devuelve &true; para interfaces definidas. En ese caso se debe + usar <function>interface_exists</function>. + </entry> + </row> + <row> <entry>5.0.0</entry> <entry> El parámetro <parameter>autocargar</parameter> fue agregado. @@ -78,7 +87,7 @@ <programlisting role="php"> <![CDATA[ <?php -// Verificar si la clase existe antes de usarla +// Verificar que la clase exista antes de usarla if (class_exists('MiClase')) { $mi_clase = new MiClase(); } @@ -96,7 +105,7 @@ { include($clase . '.php'); - // Verificar si la sentencia include declara la clase + // Verificar si la sentencia include declaró la clase if (!class_exists($clase, false)) { trigger_error("No es posible cargar la clase: $clase", E_USER_WARNING); } @@ -116,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>function_exists</function></member> <member><function>interface_exists</function></member> <member><function>get_declared_classes</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-invoke.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-invoke.xml diff -u phpdoc-es/reference/com/functions/com-invoke.xml:1.3 phpdoc-es/reference/com/functions/com-invoke.xml:1.4 --- phpdoc-es/reference/com/functions/com-invoke.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-invoke.xml Mon Sep 3 02:58:16 2007 @@ -1,25 +1,50 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-invoke' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-invoke" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_invoke</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>mixed</type><methodname>com_invoke</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter> - function parameters, ... - </parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-invoke" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_invoke</refname> + <refpurpose> + Llama el método de un componente COM [obsoleta] + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>mixed</type><methodname>com_invoke</methodname> + <methodparam><type>resource</type><parameter>objeto_com</parameter></methodparam> + <methodparam><type>string</type><parameter>nombre_funcion</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>parametros_funcion</parameter></methodparam> + </methodsynopsis> + <para> + <function>com_invoke</function> invoca el método con el nombre + <parameter>nombre_funcion</parameter> del componente COM referenciado + por <parameter>objeto_com</parameter>. <function>com_invoke</function> + devuelve &false; en caso de fallo, devuelve el valor de retorno de + <parameter>nombre_funcion</parameter> en caso de éxito. Todos los + parámetros extra <parameter>parametros_funcion</parameter> son pasados + al método <parameter>nombre_funcion</parameter>. + </para> + <para> + <example> + <title>No use com_invoke(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$val = $obj->metodo($uno, $dos); +// en lugar de esto: +$val = com_invoke($obj, 'metodo', $uno, $dos); +?> +]]> + </programlisting> + </example> + </para> + + &reference.com.use-oo-instead; + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-load.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-load.xml diff -u phpdoc-es/reference/com/functions/com-load.xml:1.3 phpdoc-es/reference/com/functions/com-load.xml:1.4 --- phpdoc-es/reference/com/functions/com-load.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-load.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,56 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-load' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-load" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_load</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>string</type><methodname>com_load</methodname> - <methodparam><type>string</type><parameter>module name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - server name - </parameter></methodparam> - </methodsynopsis> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-load" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_load</refname> + <refpurpose> + Crea una nueva referencia a un componente COM [obsoleta] + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>resource</type><methodname>com_load</methodname> + <methodparam><type>string</type><parameter>nombre_modulo</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter> + nombre_servidor + </parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter> + pagina_codigos + </parameter></methodparam> + </methodsynopsis> + <para> + Equivalente a usar el operador <literal>new</literal> para crear una + instancia de la clase <xref linkend="class.com"/>. Se recomienda el uso + orientado a objetos en lugar de llamar esta función. + </para> + <para> + <example> + <title>No use com_load(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$obj = new COM($modulo); +// en lugar de esto: +$obj = com_load($modulo); +?> +]]> + </programlisting> + </example> + </para> + + + <note> <para> + Esta función no existe en PHP 5; use la clase <xref + linkend="class.com"/> en su lugar. </para> - </refsect1> - </refentry> + </note> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propget.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propget.xml diff -u phpdoc-es/reference/com/functions/com-propget.xml:1.3 phpdoc-es/reference/com/functions/com-propget.xml:1.4 --- phpdoc-es/reference/com/functions/com-propget.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propget.xml Mon Sep 3 02:58:16 2007 @@ -1,22 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propget' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propget" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propget</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>mixed</type><methodname>com_propget</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propget" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propget</refname> + <refpurpose>&Alias; <function>com_get</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_get</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propput.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propput.xml diff -u phpdoc-es/reference/com/functions/com-propput.xml:1.3 phpdoc-es/reference/com/functions/com-propput.xml:1.4 --- phpdoc-es/reference/com/functions/com-propput.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propput.xml Mon Sep 3 02:58:16 2007 @@ -1,23 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propput' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propput" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propput</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_propput</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propput" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propput</refname> + <refpurpose>&Alias; <function>com_set</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_set</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-propset.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-propset.xml diff -u phpdoc-es/reference/com/functions/com-propset.xml:1.3 phpdoc-es/reference/com/functions/com-propset.xml:1.4 --- phpdoc-es/reference/com/functions/com-propset.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-propset.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,21 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-propset' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-propset" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_propset</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_propset</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - Esta función es un alias para <function>com_propput</function>. - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> +<refentry xml:id="function.com-propset" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_propset</refname> + <refpurpose>&Alias; <function>com_set</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; <function>com_set</function>. + </simpara> + &reference.com.use-oo-instead; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/com/functions/com-set.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-es/reference/com/functions/com-set.xml diff -u phpdoc-es/reference/com/functions/com-set.xml:1.3 phpdoc-es/reference/com/functions/com-set.xml:1.4 --- phpdoc-es/reference/com/functions/com-set.xml:1.3 Sat Jun 23 13:25:29 2007 +++ phpdoc-es/reference/com/functions/com-set.xml Mon Sep 3 02:58:16 2007 @@ -1,24 +1,48 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/com.xml, last change in rev 1.1 --> -<!-- last change to 'com-set' in en/ tree in rev 1.7 --> - <refentry xml:id="function.com-set" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>com_set</refname> - <refpurpose>???</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>com_set</methodname> - <methodparam><type>resource</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>property</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - Esta función es un alias para <function>com_set</function>. - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> + <refentry xml:id="function.com-set" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>com_set</refname> + <refpurpose> + Asigna un valor a una propiedad de un componente COM + </refpurpose> + </refnamediv> + <refsect1> + <title>Descripción</title> + <methodsynopsis> + <type>void</type><methodname>com_set</methodname> + <methodparam><type>resource</type><parameter>objeto_com</parameter></methodparam> + <methodparam><type>string</type><parameter>propiedad</parameter></methodparam> + <methodparam><type>mixed</type><parameter>valor</parameter></methodparam> + </methodsynopsis> + <para> + Establece el valor de la <parameter>propiedad</parameter> del componente + COM referenciado por <parameter>objeto_com</parameter>. Devuelve el + valor nuevo definido si tiene éxito, &false; en caso de error. + </para> + + <para> + <example> + <title>No use com_set(), use la sintaxis OO en su lugar</title> + <programlisting role="php"> +<![CDATA[ +<?php +// haga esto +$obj->propiedad = $valor; +// en lugar de esto: +com_set($obj, 'propiedad', $valor); +?> +]]> + </programlisting> + </example> + </para> + + + &reference.com.use-oo-instead; + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/filesystem/functions/file-put-contents.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-es/reference/filesystem/functions/file-put-contents.xml diff -u phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.11 phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.12 --- phpdoc-es/reference/filesystem/functions/file-put-contents.xml:1.11 Fri Aug 24 14:16:16 2007 +++ phpdoc-es/reference/filesystem/functions/file-put-contents.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.21 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.22 Maintainer: lboshell Status: ready --> <refentry xml:id="function.file-put-contents" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>file_put_contents</refname> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/filesystem/functions/ftruncate.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-es/reference/filesystem/functions/ftruncate.xml diff -u phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.4 phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.5 --- phpdoc-es/reference/filesystem/functions/ftruncate.xml:1.4 Sat Jun 23 13:25:33 2007 +++ phpdoc-es/reference/filesystem/functions/ftruncate.xml Mon Sep 3 02:58:16 2007 @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 --> <refentry xml:id="function.ftruncate" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ftruncate</refname> <refpurpose>Trunca un archivo a la longitud dada</refpurpose> </refnamediv> - <refsect1> - <title>Descripción</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ftruncate</methodname> <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> @@ -16,24 +16,94 @@ </methodsynopsis> <para> Toma el apuntador de archivo, <parameter>gestor</parameter>, y trunca el - archivo a la longitud <parameter>tamanyo</parameter>. &return.success; + archivo a la longitud <parameter>tamanyo</parameter>. </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>gestor</parameter></term> + <listitem> + <para> + El apuntador de archivo. + </para> + <note> + <para> + El <parameter>gestor</parameter> debe ser abierto en modo de + escritura. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>tamanyo</parameter></term> + <listitem> + <para> + El tamaño a truncar el archivo. + </para> + <note> + <para> + Si <parameter>tamanyo</parameter> es mayor que el archivo, éste será + extendido con bytes nulos. + </para> + <para> + Si <parameter>tamanyo</parameter> es menor que el archivo, los datos + extra serán perdidos. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>PHP 4.3.3</entry> + <entry> + Antes de esta versión, <function>ftruncate</function> devolvÃa un + valor <type>integer</type> de 1 en caso de éxito, en lugar del valor + <type>boolean</type> &true;. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; <note> <para> - El apuntador de archivo es modificado únicamente en modo de - <emphasis>adición</emphasis>. En modo de <emphasis>escritura</emphasis> - se requiere de una llamada adicional a <function>fseek</function>. - </para> - </note> - <note> - <para> - En versiones anteriores a PHP 4.3.3, <function>ftruncate</function> - devuelve un valor <type>integer</type> de 1 cuando tiene éxito, en lugar - del valor <type>boolean</type> &true;. + El apuntador de archivo <emphasis>no</emphasis> es modificado. </para> </note> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; <para> - Vea también <function>fopen</function> y <function>fseek</function>. + <simplelist> + <member><function>fopen</function></member> + <member><function>fseek</function></member> + </simplelist> </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/ifx/functions/ifx-query.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/ifx/functions/ifx-query.xml diff -u phpdoc-es/reference/ifx/functions/ifx-query.xml:1.5 phpdoc-es/reference/ifx/functions/ifx-query.xml:1.6 --- phpdoc-es/reference/ifx/functions/ifx-query.xml:1.5 Sat Jun 23 13:25:36 2007 +++ phpdoc-es/reference/ifx/functions/ifx-query.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <refentry xml:id="function.ifx-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ifx_query</refname> @@ -116,8 +116,7 @@ ifx_textasvarchar(1); // usar "modo de texto" para blobs $id_res = ifx_query("select * from ordenes", $id_con); if (! $id_res) { - printf("No se pueden seleccionar órdenes: %s\n<br />%s<br />\n", ifx_error()); - ifx_errormsg(); + printf("No se pueden seleccionar órdenes: %s\n<br />%s<br />\n", ifx_error(), ifx_errormsg()); die; } ifx_htmltbl_result($id_res, "border=\"1\""); http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/misc/functions/highlight-file.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-es/reference/misc/functions/highlight-file.xml diff -u phpdoc-es/reference/misc/functions/highlight-file.xml:1.14 phpdoc-es/reference/misc/functions/highlight-file.xml:1.15 --- phpdoc-es/reference/misc/functions/highlight-file.xml:1.14 Thu Jul 5 03:37:43 2007 +++ phpdoc-es/reference/misc/functions/highlight-file.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.24 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.25 Maintainer: lboshell Status: ready --> <refentry xml:id="function.highlight-file" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>highlight_file</refname> @@ -15,9 +15,9 @@ <methodparam choice="opt"><type>bool</type><parameter>devolver</parameter></methodparam> </methodsynopsis> <para> - Imprime una versión con resaltado de sintaxis del código contenido en - <parameter>nombre_archivo</parameter> usando los colores definidos en el - resaltador de sintaxis incorporado de PHP. + Imprime o devuelve una versión con resaltado de sintaxis del código + contenido en <parameter>nombre_archivo</parameter> usando los colores + definidos en el resaltador de sintaxis incorporado de PHP. </para> <para> Muchos servidores son configurados para resaltar automáticamente archivos http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/msql/reference.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-es/reference/msql/reference.xml diff -u phpdoc-es/reference/msql/reference.xml:1.8 phpdoc-es/reference/msql/reference.xml:1.9 --- phpdoc-es/reference/msql/reference.xml:1.8 Sat Jun 23 13:25:40 2007 +++ phpdoc-es/reference/msql/reference.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.14 Maintainer: lboshell Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external --> @@ -12,9 +12,9 @@ <section xml:id="msql.intro"> &reftitle.intro; <para> - Estas funciones le permiten acceder a servidores de bases de datos - mSQL. Puede encontrar más información sobre mSQL en - <link xlink:href="&url.msql;">&url.msql;</link>. + Estas funciones le permiten acceder a servidores de bases de datos mSQL. + Puede encontrar más información sobre mSQL en <link + xlink:href="&url.msql;">&url.msql;</link>. </para> </section> @@ -25,10 +25,9 @@ <section xml:id="msql.resources"> &reftitle.resources; <para> - Existen dos tipos de recurso usados en el módulo mSQL. El - primero es el identificador de enlace para una conexión de - base de datos, el segundo es un recurso que contiene el resultado - de una consulta. + Existen dos tipos de recurso usados en el módulo mSQL. El primero es el + identificador de enlace para una conexión de base de datos, el segundo + es un recurso que contiene el resultado de una consulta. </para> </section> @@ -37,26 +36,26 @@ <section xml:id="msql.examples"> &reftitle.examples; <para> - Este sencillo ejemplo muestra el modo de crear una - conexión, ejecutar una consulta, imprimir las filas de - resultado y desconectarse de una base de datos mSQL. + Este sencillo ejemplo muestra el modo de crear una conexión, ejecutar + una consulta, imprimir las filas de resultado y desconectarse de una + base de datos mSQL. <example> <title>Ejemplo de uso de mSQL</title> <programlisting role="php"> <![CDATA[ <?php -/* Conexion, seleccion de una base de datos */ +/* Conexión, selección de una base de datos */ $enlace = msql_connect('localhost', 'nombre_usuario', 'contrasenya') - or die('No pudo crear una conexión: ' . msql_error($enlace)); + or die('No pudo crearse una conexión: ' . msql_error($enlace)); msql_select_db('base_de_datos', $enlace) or die('No pudo seleccionarse la base de datos'); /* Realizar una consulta SQL */ $consulta = 'SELECT * FROM mi_tabla'; -$resultado = msql_query($consulta, $enlace) or die('La consulta falló: ' . msql_error($enlace)); +$resultado = msql_query($consulta, $enlace) or die('La consulta falló: ' . msql_error()); -/* Impresion de resultados en HTML */ +/* Impresión de resultados en HTML */ echo "<table>\n"; while ($fila = msql_fetch_array($resultado, MSQL_ASSOC)) { echo "\t<tr>\n"; @@ -70,7 +69,7 @@ /* Liberar el conjunto de resultados */ msql_free_result($resultado); -/* Cerrar la conexion */ +/* Cerrar la conexión */ msql_close($enlace); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/session/ini.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-es/reference/session/ini.xml diff -u phpdoc-es/reference/session/ini.xml:1.21 phpdoc-es/reference/session/ini.xml:1.22 --- phpdoc-es/reference/session/ini.xml:1.21 Fri Aug 24 14:16:17 2007 +++ phpdoc-es/reference/session/ini.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.49 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.50 Maintainer: lboshell Status: ready --> <section xml:id="session.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; @@ -19,7 +19,7 @@ <tbody> <row> <entry>session.save_path</entry> - <entry>""</entry> + <entry>"/tmp"</entry> <entry>PHP_INI_ALL</entry> <entry></entry> </row> http://cvs.php.net/viewvc.cgi/phpdoc-es/reference/strings/functions/substr-compare.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-es/reference/strings/functions/substr-compare.xml diff -u phpdoc-es/reference/strings/functions/substr-compare.xml:1.5 phpdoc-es/reference/strings/functions/substr-compare.xml:1.6 --- phpdoc-es/reference/strings/functions/substr-compare.xml:1.5 Tue Jul 31 17:28:47 2007 +++ phpdoc-es/reference/strings/functions/substr-compare.xml Mon Sep 3 02:58:16 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry xml:id="function.substr-compare" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>substr_compare</refname> @@ -49,7 +49,8 @@ <term><parameter>desplazamiento</parameter></term> <listitem> <para> - La posición de inicio para la comparación. + La posición de inicio para la comparación. Si es un valor negativo, + comienza contando desde el final de la cadena. </para> </listitem> </varlistentry> @@ -88,6 +89,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.1.0</entry> + <entry> + Se agregó la posibilidad de usar un + <parameter>desplazamiento</parameter> negativo. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -97,6 +123,7 @@ <![CDATA[ <?php echo substr_compare("abcde", "bc", 1, 2); // 0 +echo substr_compare("abcde", "de", -2, 2); // 0 echo substr_compare("abcde", "bcg", 1, 2); // 0 echo substr_compare("abcde", "BC", 1, 2, true); // 0 echo substr_compare("abcde", "bc", 1, 3); // 1