cvs: phpdoc-es / translation.xml /language/oop5 autoload.xml patterns.xml reflection.xml /reference/array/functions array-merge.xml array-walk.xml
/reference/bzip2/functions bzerrno.xml /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml
/reference/mysqli ini.xml /reference/mysqli/functions mysqli-fetch-field-direct.xml mysqli-fetch-field.xml mysqli-fetch-fields.xml /reference/sybase
ini.xml /reference/zlib ini.xml /reference/zlib/functions gzcompress.xml gzdeflate.xml gzencode.xml

From: Date: Wed, 23 Feb 2005 19:03:01 +0000
Subject: cvs: phpdoc-es / translation.xml /language/oop5 autoload.xml patterns.xml reflection.xml /reference/array/functions array-merge.xml array-walk.xml
/reference/bzip2/functions bzerrno.xml /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml
/reference/mysqli ini.xml /reference/mysqli/functions mysqli-fetch-field-direct.xml mysqli-fetch-field.xml mysqli-fetch-fields.xml /reference/sybase
ini.xml /reference/zlib ini.xml /reference/zlib/functions gzcompress.xml gzdeflate.xml gzencode.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-768@lists.php.net to get a copy of this message
baoengb Wed Feb 23 14:03:01 2005 EDT Modified files: /phpdoc-es translation.xml /phpdoc-es/language/oop5 autoload.xml patterns.xml reflection.xml /phpdoc-es/reference/array/functions array-merge.xml array-walk.xml /phpdoc-es/reference/bzip2/functions bzerrno.xml /phpdoc-es/reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml /phpdoc-es/reference/mysqli ini.xml /phpdoc-es/reference/mysqli/functions mysqli-fetch-field-direct.xml mysqli-fetch-field.xml mysqli-fetch-fields.xml /phpdoc-es/reference/sybase ini.xml /phpdoc-es/reference/zlib ini.xml /phpdoc-es/reference/zlib/functions gzcompress.xml gzdeflate.xml gzencode.xml Log: sync con version inglesa, y otras correcciones

http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.186&r2=1.187&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.186 phpdoc-es/translation.xml:1.187 --- phpdoc-es/translation.xml:1.186 Wed Feb 16 12:03:53 2005 +++ phpdoc-es/translation.xml Wed Feb 23 14:02:56 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.186 $ --> +<!-- $Revision: 1.187 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -162,7 +162,7 @@ <file name="reference/filesystem/functions/umask.xml" person="baoengb" type="review" date="16.02.2005"/> <file name="reference/filesystem/functions/fputcsv.xml" - person="baoengb" type="traduction" date="16.02.2005"/> + person="baoengb" type="translation" date="16.02.2005"/> </work-in-progress> </translation> http://cvs.php.net/diff.php/phpdoc-es/language/oop5/autoload.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/language/oop5/autoload.xml diff -u phpdoc-es/language/oop5/autoload.xml:1.1 phpdoc-es/language/oop5/autoload.xml:1.2 --- phpdoc-es/language/oop5/autoload.xml:1.1 Thu Feb 10 13:55:11 2005 +++ phpdoc-es/language/oop5/autoload.xml Wed Feb 23 14:02:57 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> <sect1 id="language.oop5.autoload"> <title>Auto carga de Objetos</title> <para> http://cvs.php.net/diff.php/phpdoc-es/language/oop5/patterns.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/language/oop5/patterns.xml diff -u phpdoc-es/language/oop5/patterns.xml:1.2 phpdoc-es/language/oop5/patterns.xml:1.3 --- phpdoc-es/language/oop5/patterns.xml:1.2 Thu Feb 10 16:41:56 2005 +++ phpdoc-es/language/oop5/patterns.xml Wed Feb 23 14:02:57 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> <sect1 id="language.oop5.patterns"> <title>Patrones</title> <para> @@ -13,7 +13,7 @@ <title>Factory</title> <para> El patr&oacute;n Factory permita la instancia de objetos en tiempo de - ejecuci&oacute;n. Es llamado el patr6oacute;n Factory puesto que es + ejecuci&oacute;n. Es llamado el patr&oacute;n Factory puesto que es responsable de "manufacturar" un objeto. </para> <example> http://cvs.php.net/diff.php/phpdoc-es/language/oop5/reflection.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/language/oop5/reflection.xml diff -u phpdoc-es/language/oop5/reflection.xml:1.1 phpdoc-es/language/oop5/reflection.xml:1.2 --- phpdoc-es/language/oop5/reflection.xml:1.1 Thu Feb 10 13:55:11 2005 +++ phpdoc-es/language/oop5/reflection.xml Wed Feb 23 14:02:57 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> <sect1 id="language.oop5.reflection"> <title>Reflecci&oacute;n</title> <sect2 id="language.oop5.reflection.introduction"> @@ -323,6 +323,8 @@ public bool isInternal() public bool isUserDefined() public bool isInstantiable() + public bool hasConstant(string name) + public bool hasProperty(string name) public bool hasMethod(string name) public string getFileName() public int getStartLine() @@ -357,7 +359,8 @@ </informalexample> <note> <simpara> - <function>hasMethod</function> fue agregado en PHP 5.1.0. + <function>hasConstant</function>, <function>hasMethod</function>, + <function>hasProperty</function> fueron agregados en PHP 5.1.0. </simpara> </note> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-merge.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/array/functions/array-merge.xml diff -u phpdoc-es/reference/array/functions/array-merge.xml:1.4 phpdoc-es/reference/array/functions/array-merge.xml:1.5 --- phpdoc-es/reference/array/functions/array-merge.xml:1.4 Thu Jan 27 14:50:29 2005 +++ phpdoc-es/reference/array/functions/array-merge.xml Wed Feb 23 14:02:58 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-merge"> <refnamediv> @@ -114,48 +114,7 @@ ]]> </screen> </example> - <example> - <title>Ejemplo <function>array_merge</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$array_one = array(0 => "jay", 1 => "bob", 2 => "randal", 3 => "dante"); -$array_two = array("jay" => "bob", "randal" => "dante", "jay" => "jason"); - -unset($array_one[2]); - -$result_one = array_merge($array_one); -$result_two = array_merge($array_two); - -print_r($result_one); -print_r($result_two); -?> -]]> - </programlisting> - &example.outputs; - <screen role="php"> -<![CDATA[ -Array -( - [0] => jay - [1] => bob - [2] => dante -) -Array -( - [jay] => jason - [randal] => dante -) -]]> - </screen> - </example> </para> - <note> - <para> - Los &iacute;ndices compartidos ser&aacute;n sobreescritos en base a la - forma "primero en llegar, primero en salir". - </para> - </note> <warning> <para> El comportamient de <function>array_merge</function> fue modificado en http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-walk.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/array/functions/array-walk.xml diff -u phpdoc-es/reference/array/functions/array-walk.xml:1.5 phpdoc-es/reference/array/functions/array-walk.xml:1.6 --- phpdoc-es/reference/array/functions/array-walk.xml:1.5 Mon Nov 15 13:02:12 2004 +++ phpdoc-es/reference/array/functions/array-walk.xml Wed Feb 23 14:02:58 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.23 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.24 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-walk"> <refnamediv> @@ -116,8 +116,9 @@ <function>list</function>, <link linkend="control-structures.foreach">foreach</link>, <function>each</function>, - <function>call_user_func_array</function>, y - <function>array_map</function>. + <function>call_user_func_array</function>, + <function>array_map</function>, + &seealso.callback;. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/bzip2/functions/bzerrno.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/bzip2/functions/bzerrno.xml diff -u phpdoc-es/reference/bzip2/functions/bzerrno.xml:1.3 phpdoc-es/reference/bzip2/functions/bzerrno.xml:1.4 --- phpdoc-es/reference/bzip2/functions/bzerrno.xml:1.3 Mon Feb 7 10:38:22 2005 +++ phpdoc-es/reference/bzip2/functions/bzerrno.xml Wed Feb 23 14:02:58 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> <refentry id="function.bzerrno"> <refnamediv> <refname>bzerrno</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/basename.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/basename.xml diff -u phpdoc-es/reference/filesystem/functions/basename.xml:1.1 phpdoc-es/reference/filesystem/functions/basename.xml:1.2 --- phpdoc-es/reference/filesystem/functions/basename.xml:1.1 Sun Apr 14 20:13:51 2002 +++ phpdoc-es/reference/filesystem/functions/basename.xml Wed Feb 23 14:02:58 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'basename' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.basename"> <refnamediv> <refname>basename</refname> @@ -13,28 +14,40 @@ <methodsynopsis> <type>string</type><methodname>basename</methodname> <methodparam><type>string</type><parameter>path</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>sufijo</parameter></methodparam> </methodsynopsis> <para> - Dada una cadena (string) que contiene el path de un fichero, - esta funci&oacute;n devuelve el nombre base del fichero. + Dada una cadena que contiene el path de un archivo, + esta funci&oacute;n devuelve el nombre base del archivo. + Si el nombre del archivo termina con <parameter>sufijo</parameter>, este + tambi&eacute;n ser&aacute; cortado del nombre del archivo. </para> <para> En Windows, tanto la barra (<literal>/</literal>) como la barra inversa (<literal>\</literal>) pueden usarse como caracter separador en el path. En - otros entornos, se usa la barra directa - (<literal>/</literal>). + otros entornos, se usa la barra directa (<literal>/</literal>). </para> <para> <example> <title>Ejemplo de <function>basename</function></title> <programlisting role="php"> -$path = "/home/httpd/html/index.php3"; -$file = basename($path); // $file toma el valor "index.php3" +<![CDATA[ +<?php +$path = "/home/httpd/html/index.php"; +$file = basename($path); // $file is set to "index.php" +$file = basename($path, ".php"); // $file is set to "index" +?> +]]> </programlisting> </example> </para> + <note> + <para> + El par&aacute;metro <parameter>sufijo</parameter> fue agregado en PHP 4.1.0. + </para> + </note> <para> - Ver tambi&eacute;n: <function>dirname</function> + Ver tambi&eacute;n: <function>dirname</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chgrp.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/chgrp.xml diff -u phpdoc-es/reference/filesystem/functions/chgrp.xml:1.1 phpdoc-es/reference/filesystem/functions/chgrp.xml:1.2 --- phpdoc-es/reference/filesystem/functions/chgrp.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/chgrp.xml Wed Feb 23 14:02:58 2005 @@ -1,31 +1,31 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'chgrp' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chgrp"> <refnamediv> <refname>chgrp</refname> - <refpurpose>Cambia el grupo de un fichero</refpurpose> + <refpurpose>Cambia el grupo de un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>chgrp</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>mixed</type><parameter>group</parameter></methodparam> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam><type>mixed</type><parameter>grupo</parameter></methodparam> </methodsynopsis> <para> - Trata de cambiar el grupo al que pertenece el fichero filename - al grupo group. S&oacute;lo el superusuario puede cambiar el grupo de - un fichero arbitrariamente; otros usuarios pueden cambiar el - grupo del fichero a cualquier grupo del cual el usuario sea - miembro. + Trata de cambiar el grupo del archivo <parameter>nombre_archivo</parameter> + al grupo <parameter>grupo</parameter> (especificado por nombre o + n&uacute;mero). S&oacute;lo el superusuario puede cambiar el grupo de + un archivo arbitrariamente; otros usuarios pueden cambiar el + grupo del archivo a cualquier grupo del cual el usuario sea miembro. </para> <para> - Devuelve &true; en caso de &eacute;xito; en otro caso devuelve &false;. - </para> - <para> - En Windows, no hace nada y devuelve &true;. + &return.success; </para> + &note.no-remote; + &note.sm.uidcheck; <para> Ver tambi&eacute;n <function>chown</function> y <function>chmod</function>. http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chmod.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/chmod.xml diff -u phpdoc-es/reference/filesystem/functions/chmod.xml:1.1 phpdoc-es/reference/filesystem/functions/chmod.xml:1.2 --- phpdoc-es/reference/filesystem/functions/chmod.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/chmod.xml Wed Feb 23 14:02:59 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'chmod' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chmod"> <refnamediv> <refname>chmod</refname> @@ -10,30 +11,85 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>chmod</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam><type>int</type><parameter>modo</parameter></methodparam> </methodsynopsis> <para> - Trata de cambiar los permisos del fichero especificado por - <parameter>filename</parameter> a los permisos dados por - <parameter>mode</parameter>. + Trata de cambiar los permisos del archivo especificado por + <parameter>nombre_archivo</parameter> a los permisos dados por + <parameter>modo</parameter>. </para> <para> - Cuidado que <parameter>mode</parameter> no es asumido de forma + Note que <parameter>modo</parameter> no es asumido de forma autom&aacute;tica como un valor octal. Para asegurar que se hace la operaci&oacute;n esperada necesitas anteponer un cero (0) como prefijo del par&aacute;metro <parameter>mode</parameter>: <informalexample> <programlisting role="php"> -chmod( "/somedir/somefile", 755 ); // decimal; probablemente incorrecto -chmod( "/somedir/somefile", 0755 ); // octal; valor correcto de mode +<![CDATA[ +<?php +chmod("/somedir/somefile", 755); // decimal; probablemente incorrecto +chmod("/somedir/somefile", "u+rwx,go+rx"); // string; incorrecto +chmod("/somedir/somefile", 0755); // octal; valor correcto +?> +]]> </programlisting> </informalexample> </para> <para> - Devuelve &true; en caso de &eacute;xito y &false; en otro caso. + El par&aacute;metro <parameter>modo</parameter> consiste de tres + componentes de valor octal que especifican las restricciones de acceso + para el propietario, el grupo de usuarios al que pertenece el + propietario del archivo, y todo el mundo, e ese orden. Uno de los + componentes puede ser calculado al agregarle los permisos necesarios + para ese usuario en especifico, El n&uacute;mero 1 significa que tiene + permisos de ejecuci&oacute;n, el n&uacute;mero 2 significa que puede + modificar el contenido del archivo, el n&uacute;mero 4 significa que + puede leer el contenido del archivo. Agrege estos valores para + especificar los permisos necesrios. Tambi&eacute;n se puede leer + m&aacute;s acerca de los modos en sistemas Unix con los comandos + 'man 1 chmod' y 'man 2 chmod'. </para> <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +// Lectura y escritura para el propietario, y nada para los demas +chmod("/somedir/somefile", 0600); + +// Lectura y escritura para el propietario, y lectura para los demas +chmod("/somedir/somefile", 0644); + +// todos los permisos par el propietario, lectyra y escritura para los demas +chmod("/somedir/somefile", 0755); + +// Todo para el propietario, lectura y ejecucion para el grupo del propietario +chmod("/somedir/somefile", 0750); +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + &return.success; + </para> + <note> + <para> + El usuario actual es con el cual PHP se ejecuta. Es probable que + no sea el mismo usuario que usa para accesos FTP o por shell. + </para> + </note> + &note.no-remote; + <note> + <simpara> + Cuando &safemode; est&aacute; activado, PHP checa si los archivos o + directorios con lo que quiere trabajar tienen la misma identificaci&oacute;n + de usuario (UID) (propietario) que el que est&aacute; ejecutando el + script. Adem&aacute;s no puede cambiar el SUID, SGID y los sticky bits. + </simpara> + </note> + <para> Ver tambi&eacute;n <function>chown</function> y <function>chgrp</function>. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chown.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/chown.xml diff -u phpdoc-es/reference/filesystem/functions/chown.xml:1.1 phpdoc-es/reference/filesystem/functions/chown.xml:1.2 --- phpdoc-es/reference/filesystem/functions/chown.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/chown.xml Wed Feb 23 14:02:59 2005 @@ -1,33 +1,32 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'chown' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chown"> <refnamediv> <refname>chown</refname> - <refpurpose>Cambia el propietario de un fichero</refpurpose> + <refpurpose>Cambia el propietario de un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>chown</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam><type>mixed</type><parameter>user</parameter></methodparam> + <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> + <methodparam><type>mixed</type><parameter>usuario</parameter></methodparam> </methodsynopsis> <para> - Trata de cambiar el propietario del fichero filename al - usuario user. S&oacute;lo el superusuario puede cambiar el propietario - de un fichero. + Trata de cambiar el propietario del archivo + <parameter>nombre_archivo</parameter> al usuario + <parameter>usuario</parameter>. S&oacute;lo el superusuario puede cambiar + el propietario de un archivo. </para> <para> - Devuelve &true; en caso de &eacute;xito; en otro caso devuelve &false;. - <note> - <simpara>En Windows, no hace nada y devuelve &true;. - </simpara> - </note> + &return.success; </para> + &note.no-remote; + &note.sm.uidcheck; <para> - Ver tambi&eacute;n <function>chown</function> y - <function>chmod</function>. + Ver tambi&eacute;n <function>chmod</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/clearstatcache.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/clearstatcache.xml diff -u phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.1 phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.2 --- phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/clearstatcache.xml Wed Feb 23 14:02:59 2005 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'clearstatcache' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready --> +<!-- split from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.clearstatcache"> <refnamediv> <refname>clearstatcache</refname> - <refpurpose>Limpia la cache de estado de un fichero</refpurpose> + <refpurpose>Limpia la cache de estado de un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -13,19 +14,34 @@ <void/> </methodsynopsis> <para> - Invocar la llamada del sistema <systemitem>stat</systemitem> o - <systemitem>lstat</systemitem> es bastante costoso en la mayor&iacute;a - de los sistemas. Por lo tanto, el resultado de la &uacute;ltima llamada - a cualquiera de las funciones de estado (listadas abajo) es - guardado para usarlo en la pr&oacute;xima llamada de este tipo empleando el - mismo nombre de fichero. Si deseas forzar un nuevo chequeo del - estado del fichero, por ejemplo si el fichero est&aacute; siendo chequeado - muchas veces y puede cambiar o desaparecer, usa esta funci&oacute;n para - borrar los resultados almacenados en memoria de la &uacute;ltima llamada. + Cuando se usa <function>stat</function>, <function>lstat</function>, o + cualquier otra de las funciones en la lista de funciones afectadas (vea + abajo), PHP pone en cache la informaci&oacute;n de lo que devuelven esas + funciones, en aras de proveer mayor desempe&ntilde;o. Sin embargo, en + ciertos casos, tal vez desee quitar la informaci&oacute;n en el cache. + Por ejemplo, si el mismo archivo est&aacute; siendo revisado muchas veces + dentro de un mismo script, y ese archivo est&aacute; en peligro de ser + removido o cambia durante la operaci&oacute;n del script, puede escoger + borrar el cache. En estos casos, puede usar la funci&oacute;n + <function>clearstatcache</function> para limpiar la informaci&oacute;n + que PHP pone en cache acerca del archivo. </para> <para> - Este valor s&oacute;lo es cacheado durante el tiempo de vida de una petici&oacute;n simple. + Debe notar tambi&eacute;n que PHP no pone informaci&oacute;n en cache de + archivos que no existen. De tal manera, que si ejecuta + <function>file_exists</function> en un archivo que no existe, regresar&aacute; + &false; hasta que cree el archivo. SI crea el archivo, regresar&aacute; + &true; aunque haya borrado el archivo. </para> + <note> + <para> + Esta funci&oacute;n pone en cahce informaci&oacute;n acerca de nombres + de archivo especificos, de tal forma que solo necesita ejecutar + <function>clearstatcache</function> si est&aacute; elaborando operaciones + m&uacute;ltiples sobre el mismo archivo y necesita que la informaci&oacute;n + sobre un archivo en particular no se ponga en cache. + </para> + </note> <para> Entre las funciones afectadas se incluyen <function>stat</function>, <function>lstat</function>, http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/copy.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/copy.xml diff -u phpdoc-es/reference/filesystem/functions/copy.xml:1.1 phpdoc-es/reference/filesystem/functions/copy.xml:1.2 --- phpdoc-es/reference/filesystem/functions/copy.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/copy.xml Wed Feb 23 14:02:59 2005 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'copy' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.copy"> <refnamediv> <refname>copy</refname> - <refpurpose>Copia un fichero</refpurpose> + <refpurpose>Copia un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -14,19 +15,54 @@ <methodparam><type>string</type><parameter>dest</parameter></methodparam> </methodsynopsis> <para> - Hace una copia de un fichero. Devuelve &true; si la copia tiene - &eacute;xito, y &false; en otro caso. + Hace una copia de <parameter>source</parameter> a + <parameter>dest</parameter>. &return.success; <example> <title>Ejemplo de <function>copy</function></title> <programlisting role="php"> -if (!copy($file, $file.'.bak')) { - print("failed to copy $file...&lt;br>\n"); +<![CDATA[ +<?php +$file = 'example.txt'; +$newfile = 'example.txt.bak'; + +if (!copy($file, $newfile)) { + echo "failed to copy $file...\n"; } +?> +]]> </programlisting> </example> </para> <para> - Ver tambi&eacute;n: <function>rename</function>. + Si desea mover un archivo, use la funci&oacute;n <function>rename</function>. + </para> + <note> + <para> + Desde PHP 4.3.0, los par&aacute;metros <parameter>source</parameter> y + <parameter>dest</parameter> pueden ser ULRs si se ha habilitado la + opci&oacute;n "fopen wrappers". Vea <function>fopen</function> para + m&aacute;s detalles. Si <parameter>dest</parameter> es una URL, la + operaci&oacute;n de copiado puede fallar si el empaquetador o wrapper no + soporta la sobreescritura de archivos existentes. + </para> + </note> + <warning> + <para> + Si el archivo de destino ya existe, ser&aacute; sobreescrito. + </para> + </warning> + <note> + <para> + Nota de compatibilidad con windows: Si copia un archivo sin tama&ntilde;o, + <function>copy</function> regresar&aacute; &false;, pero el archivo ser&aacute; + copiado correctamente. + </para> + </note> + <para> + Vea tambi&eacute;n <function>move_uploaded_file</function>, + <function>rename</function>, y la secci&oacute;n del manual acerca del + <link linkend="features.file-upload">Manejo de env&iacute;o de archivos + </link>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/mysqli/ini.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/mysqli/ini.xml diff -u phpdoc-es/reference/mysqli/ini.xml:1.2 phpdoc-es/reference/mysqli/ini.xml:1.3 --- phpdoc-es/reference/mysqli/ini.xml:1.2 Thu Jul 8 11:36:15 2004 +++ phpdoc-es/reference/mysqli/ini.xml Wed Feb 23 14:02:59 2005 @@ -1,18 +1,19 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> <section id="mysqli.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones de configuraci&oacute;n de MySQLi</title> - <tgroup cols="3"> + <tgroup cols="4"> <thead> <row> <entry>Nombre</entry> <entry>Default</entry> <entry>Cambiable</entry> + <entry>Changelog</entry> </row> </thead> <tbody> @@ -20,31 +21,37 @@ <entry>mysqli.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry>Available since PPH 5.0.0.</entry> </row> <row> <entry>mysqli.default_port</entry> - <entry>NULL</entry> + <entry>3306</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PPH 5.0.0.</entry> </row> <row> <entry>mysqli.default_socket</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PPH 5.0.0.</entry> </row> <row> <entry>mysqli.default_host</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PPH 5.0.0.</entry> </row> <row> <entry>mysqli.default_user</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PPH 5.0.0.</entry> </row> <row> <entry>mysqli.default_pw</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PPH 5.0.0.</entry> </row> </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml diff -u phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml:1.4 phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml:1.5 --- phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml:1.4 Fri Nov 12 15:50:49 2004 +++ phpdoc-es/reference/mysqli/functions/mysqli-fetch-field-direct.xml Wed Feb 23 14:02:59 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready --> <refentry id="function.mysqli-fetch-field-direct"> <refnamediv> <refname>mysqli_fetch_field_direct</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml diff -u phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml:1.5 phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml:1.6 --- phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml:1.5 Fri Nov 12 15:50:49 2004 +++ phpdoc-es/reference/mysqli/functions/mysqli-fetch-field.xml Wed Feb 23 14:02:59 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> <refentry id="function.mysqli-fetch-field"> <refnamediv> <refname>mysqli_fetch_field</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml diff -u phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml:1.6 phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml:1.7 --- phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml:1.6 Fri Nov 12 15:50:49 2004 +++ phpdoc-es/reference/mysqli/functions/mysqli-fetch-fields.xml Wed Feb 23 14:02:59 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> <refentry id="function.mysqli-fetch-fields"> <refnamediv> <refname>mysqli_fetch_fields</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/sybase/ini.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/sybase/ini.xml diff -u phpdoc-es/reference/sybase/ini.xml:1.4 phpdoc-es/reference/sybase/ini.xml:1.5 --- phpdoc-es/reference/sybase/ini.xml:1.4 Thu Aug 5 13:50:31 2004 +++ phpdoc-es/reference/sybase/ini.xml Wed Feb 23 14:02:59 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready --> <section id="sybase.configuration"> &reftitle.runtime; &extension.runtime; @@ -13,6 +13,7 @@ <entry>Nombre</entry> <entry>Valor por defecto</entry> <entry>Modificable</entry> + <entry>Changelog</entry> </row> </thead> <tbody> @@ -20,41 +21,49 @@ <entry>sybase.allow_persistent</entry> <entry>"On"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry></entry> </row> <row> <entry>sybase.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry></entry> </row> <row> <entry>sybase.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry></entry> </row> <row> <entry>sybase.interface_file </entry> <entry>"/usr/sybase/interfaces"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry></entry> </row> <row> <entry>sybase.min_error_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> + <entry></entry> </row> <row> <entry>sybase.min_message_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> + <entry></entry> </row> <row> <entry>sybase.compatability_mode</entry> <entry>"Off"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry></entry> </row> <row> <entry>magic_quotes_sybase</entry> <entry>"Off"</entry> <entry>PHP_INI_ALL</entry> + <entry></entry> </row> </tbody> </tgroup> @@ -182,6 +191,7 @@ <entry>Nombre</entry> <entry>Valor por defecto</entry> <entry>Modificable</entry> + <entry>Changelog</entry> </row> </thead> <tbody> @@ -189,36 +199,43 @@ <entry>sybct.allow_persistent</entry> <entry>"On"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.min_server_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.min_client_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.hostname</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.0.4.</entry> </row> <row> <entry>sybct.deadlock_retry_count</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.0.4.</entry> </row> </tbody> </tgroup> @@ -366,8 +383,7 @@ </variablelist> </para> <para> - Para m&aacute;s detalles y definici&oacute;n de las constantes PHP_INI_* vea - <function>ini_set</function>. + &ini.php.constants; </para> </section> http://cvs.php.net/diff.php/phpdoc-es/reference/zlib/ini.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/zlib/ini.xml diff -u phpdoc-es/reference/zlib/ini.xml:1.1 phpdoc-es/reference/zlib/ini.xml:1.2 --- phpdoc-es/reference/zlib/ini.xml:1.1 Thu Jun 24 16:01:06 2004 +++ phpdoc-es/reference/zlib/ini.xml Wed Feb 23 14:03:00 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> <section id="zlib.configuration"> &reftitle.runtime; &extension.runtime; @@ -17,6 +17,7 @@ <entry>Nombre</entry> <entry>Valor por Defecto</entry> <entry>Modificable</entry> + <entry>Changelog</entry> </row> </thead> <tbody> @@ -24,22 +25,24 @@ <entry>zlib.output_compression</entry> <entry>"Off"</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.0.5.</entry> </row> <row> <entry>zlib.output_compression_level</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.3.0.</entry> </row> <row> <entry>zlib.output_handler</entry> <entry>""</entry> <entry>PHP_INI_ALL</entry> + <entry>Available since PHP 4.3.0.</entry> </row> </tbody> </tgroup> </table> - Para m&aacute;s detalles y definiciones de las constantes PHP_INI_* vea - <function>ini_set</function>. + &ini.php.constants; </para> &ini.descriptions.title; http://cvs.php.net/diff.php/phpdoc-es/reference/zlib/functions/gzcompress.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/zlib/functions/gzcompress.xml diff -u phpdoc-es/reference/zlib/functions/gzcompress.xml:1.2 phpdoc-es/reference/zlib/functions/gzcompress.xml:1.3 --- phpdoc-es/reference/zlib/functions/gzcompress.xml:1.2 Tue Feb 8 11:55:30 2005 +++ phpdoc-es/reference/zlib/functions/gzcompress.xml Wed Feb 23 14:03:00 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> <refentry id="function.gzcompress"> <refnamediv> <refname>gzcompress</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/zlib/functions/gzdeflate.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/zlib/functions/gzdeflate.xml diff -u phpdoc-es/reference/zlib/functions/gzdeflate.xml:1.2 phpdoc-es/reference/zlib/functions/gzdeflate.xml:1.3 --- phpdoc-es/reference/zlib/functions/gzdeflate.xml:1.2 Tue Feb 8 11:55:30 2005 +++ phpdoc-es/reference/zlib/functions/gzdeflate.xml Wed Feb 23 14:03:00 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> <refentry id="function.gzdeflate"> <refnamediv> <refname>gzdeflate</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/zlib/functions/gzencode.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/zlib/functions/gzencode.xml diff -u phpdoc-es/reference/zlib/functions/gzencode.xml:1.4 phpdoc-es/reference/zlib/functions/gzencode.xml:1.5 --- phpdoc-es/reference/zlib/functions/gzencode.xml:1.4 Tue Feb 8 11:55:30 2005 +++ phpdoc-es/reference/zlib/functions/gzencode.xml Wed Feb 23 14:03:00 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> <refentry id="function.gzencode"> <refnamediv> <refname>gzencode</refname>
« previous php.doc.es (#768) next »