mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 00:12:06 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@337782 c90b9560-bf6c-de11-be94-00142212c4b1
433 lines
15 KiB
XML
433 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 440d81e400552226556584c9c50b6bb5ac6132a9 Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<section xml:id="info.configuration" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.runtime;
|
|
&extension.runtime;
|
|
<para>
|
|
<table>
|
|
<title>Opciones de configuración de opciones/información de PHP</title>
|
|
<tgroup cols="4">
|
|
<thead>
|
|
<row>
|
|
<entry>&Name;</entry>
|
|
<entry>&Default;</entry>
|
|
<entry>&Changeable;</entry>
|
|
<entry>&Changelog;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><link linkend="ini.assert.active">assert.active</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.assert.bail">assert.bail</link></entry>
|
|
<entry>"0"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.assert.warning">assert.warning</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.assert.callback">assert.callback</link></entry>
|
|
<entry>NULL</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.assert.quiet-eval">assert.quiet_eval</link></entry>
|
|
<entry>"0"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.assert.exception">assert.exception</link></entry>
|
|
<entry>"0"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry>Disponible desde PHP 7.0.0.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.enable-dl">enable_dl</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry>PHP_INI_SYSTEM</entry>
|
|
<entry>&removed.php.future;</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.max-execution-time">max_execution_time</link></entry>
|
|
<entry>"30"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry></entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.max-input-time">max_input_time</link></entry>
|
|
<entry>"-1"</entry>
|
|
<entry>PHP_INI_PERDIR</entry>
|
|
<entry>Disponible desde PHP 4.3.0.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.max-input-nesting-level">max_input_nesting_level</link></entry>
|
|
<entry>"64"</entry>
|
|
<entry>PHP_INI_PERDIR</entry>
|
|
<entry>Disponible desde PHP 4.4.8. y PHP 5.2.3.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.max-input-vars">max_input_vars</link></entry>
|
|
<entry>1000</entry>
|
|
<entry>PHP_INI_PERDIR</entry>
|
|
<entry>Available since PHP 5.3.9.</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry>PHP_INI_PERDIR</entry>
|
|
<entry>PHP_INI_ALL en PHP <= 4.2.3. Eliminado en PHP 5.4.0</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link></entry>
|
|
<entry>"0"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry>Eliminado en PHP 5.4.0</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.zend.enable-gc">zend.enable_gc</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry>PHP_INI_ALL</entry>
|
|
<entry>Disponible desde PHP 5.3.0.</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
&ini.php.constants;
|
|
</para>
|
|
|
|
&ini.descriptions.title;
|
|
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry xml:id="ini.assert.active">
|
|
<term>
|
|
<parameter>assert.active</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Activa la evaluación de <function>aserciones</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.assert.bail">
|
|
<term>
|
|
<parameter>assert.bail</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Terminar la ejecución del script si falla una aserción.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.assert.warning">
|
|
<term>
|
|
<parameter>assert.warning</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Lanzar un PHP warning for cada aserción que falle.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.assert.callback">
|
|
<term>
|
|
<parameter>assert.callback</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Función de usuario a llamar cuando fallen las aserciones.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.assert.quiet-eval">
|
|
<term>
|
|
<parameter>assert.quiet_eval</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Usar la configuración actual de <function>error_reporting</function> durante
|
|
las expresiones de evaluación de aserciones. Si está habilitado, no se mostrarán errores
|
|
(incondicional error_reporting(0)) durante evaluación. Si está deshabitado, se mostrarán errores
|
|
según la configuración de <function>error_reporting</function>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.assert.exception">
|
|
<term>
|
|
<parameter>assert.exception</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Emite una excepción <classname>AssertionError</classname> para la afirmación
|
|
fallida.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.enable-dl">
|
|
<term>
|
|
<parameter>enable_dl</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Esta directiva es muy útil solamente en la versión PHP
|
|
con el módulo Apache. Se puede activar o desactivar la carga dinámica de
|
|
extensiones PHP con <function>dl</function> por
|
|
servidor virtual o directorio.
|
|
</para>
|
|
<para>
|
|
La razón principal para desactivar la carga dinámica es
|
|
por seguridad. Con la carga dinámica, es posible ignorar todas
|
|
las restricciones <link linkend="ini.open-basedir">open_basedir</link>.
|
|
De forma predeterminada se permite la carga dinámica excepto cuando se usa
|
|
&safemode;. En &safemode;, es
|
|
imposible usar <function>dl</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.max-execution-time">
|
|
<term>
|
|
<parameter>max_execution_time</parameter>
|
|
<type>integer</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Este valor establece el tiempo máximo en segundos que se permite
|
|
ejecutar antes de que el analizador termine. Esto ayuda a
|
|
prevenir que scripts mal escritos bloqueen el servidor. El
|
|
valor por defecto es <literal>30</literal>. Cuando se ejecuta PHP
|
|
desde la <link linkend="features.commandline">línea de
|
|
comandos</link> el valor por defecto es <literal>0</literal>.
|
|
</para>
|
|
<para>
|
|
El tiempo de ejecución máxima no está afectada por llamadas al sistema,
|
|
operaciones de stream etc. Por favor véase la función
|
|
<function>set_time_limit</function> para más información.
|
|
</para>
|
|
<para>
|
|
No se puede cambiar esta opción con <function>ini_set</function> cuando
|
|
se ejecuta en &safemode;. La única manera es desactivar safe mode o
|
|
cambiando el límite en &php.ini;.
|
|
</para>
|
|
<para>
|
|
El servidor web puede tener otras configuraciones de tiempo de espera que
|
|
quizá interrumpan la ejecución de PHP. Apache tiene la directiva
|
|
<literal>Timeout</literal> y IIS tiene la función CGI timeout.
|
|
Las dos de 300 segundos por omisión. Véase la documentación del
|
|
servidor web para información específica.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.max-input-time">
|
|
<term>
|
|
<parameter>max_input_time</parameter>
|
|
<type>integer</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Establece el tiempo máximo en segundos que se permite a un script
|
|
analizar datos de entrada, como POST y GET. La medición comienza en el momento
|
|
en que PHP es invocado en el servidor y finaliza cuando la ejecución comienza.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.max-input-nesting-level">
|
|
<term>
|
|
<parameter>max_input_nesting_level</parameter>
|
|
<type>integer</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Establece el máximo de profundidad de anidamiento para
|
|
<link linkend="language.variables.external">variables de entrada</link> (p.ej.
|
|
<varname>$_GET</varname>, <varname>$_POST</varname>.)
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.max-input-vars">
|
|
<term>
|
|
<parameter>max_input_vars</parameter>
|
|
<type>integer</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Cuantas <link linkend="language.variables.external">variables
|
|
de entrada</link> pueden ser aceptadas (el límite se aplica a los arrays
|
|
superglobales $_GET, $_POST y $_COOKIE de forma separada). El uso de esta directiva
|
|
mitiga la posibilidad de ataques de denegación de servicio que utilizan colisiones de hash.
|
|
Si hay más variables de entrada que las especificadas por la
|
|
presente directiva, un <constant>E_WARNING</constant> es emitido, y otras
|
|
variables entrada son truncadas a partir de la solicitud.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.magic-quotes-gpc">
|
|
<term>
|
|
<parameter>magic_quotes_gpc</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
|
<para>
|
|
Establece las magic_quotes state para operaciones GPC (Get/Post/Cookie).
|
|
Cuando las magic_quotes están activadas, todas las ' (comillas simples),
|
|
" (comillas dobles), \ (barra invertida) y NUL's son escapados
|
|
con una barra invertida de forma automática..
|
|
</para>
|
|
<note>
|
|
<para>
|
|
En PHP 4, también las variables <varname>$_ENV</varname>
|
|
son escapadas.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
Si la directiva <link linkend="ini.magic-quotes-sybase">
|
|
magic_quotes_sybase</link> también está activada
|
|
sobrescribirá completamente magic_quotes_gpc. Tener las dos directivas
|
|
habilitadas significa que solamente las comillas simples son escapadas como
|
|
<emphasis>''</emphasis>. Comillas dobles, barras invertidas y
|
|
NUL's permanecerán igual sin ser escapadas.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Ver también <function>get_magic_quotes_gpc</function>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.magic-quotes-runtime">
|
|
<term>
|
|
<parameter>magic_quotes_runtime</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
|
<para>
|
|
Si <parameter>magic_quotes_runtime</parameter> está activado,
|
|
la mayoría de funciones que devuelven datos desde cualquier tipo de
|
|
recurso externo incluyendo bases de datos y ficheros de texto contendrán
|
|
comillas escapadas con barras invertidas. Si
|
|
<link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>
|
|
también está habilidado, las comillas simples serán escapadas con comillas simples en
|
|
lugar de barras invertidas.
|
|
</para>
|
|
<para>
|
|
Funciones afectadas por <parameter>magic_quotes_runtime</parameter>
|
|
(no incluye funciones de PECL):
|
|
<simplelist>
|
|
<member><function>get_meta_tags</function></member>
|
|
<member><function>file_get_contents</function></member>
|
|
<member><function>file</function></member>
|
|
<member><function>fgets</function></member>
|
|
<member><function>fwrite</function></member>
|
|
<member><function>fread</function></member>
|
|
<member><function>fputcsv</function></member>
|
|
<member><function>stream_socket_recvfrom</function></member>
|
|
<member><function>exec</function></member>
|
|
<member><function>system</function></member>
|
|
<member><function>passthru</function></member>
|
|
<member><function>stream_get_contents</function></member>
|
|
<member><function>bzread</function></member>
|
|
<member><function>gzfile</function></member>
|
|
<member><function>gzgets</function></member>
|
|
<member><function>gzwrite</function></member>
|
|
<member><function>gzread</function></member>
|
|
<member><function>exif_read_data</function></member>
|
|
<member><function>dba_insert</function></member>
|
|
<member><function>dba_replace</function></member>
|
|
<member><function>dba_fetch</function></member>
|
|
<member><function>ibase_fetch_row</function></member>
|
|
<member><function>ibase_fetch_assoc</function></member>
|
|
<member><function>ibase_fetch_object</function></member>
|
|
<member><function>mssql_fetch_row</function></member>
|
|
<member><function>mssql_fetch_object</function></member>
|
|
<member><function>mssql_fetch_array</function></member>
|
|
<member><function>mssql_fetch_assoc</function></member>
|
|
<member><function>mysqli_fetch_row</function></member>
|
|
<member><function>mysqli_fetch_array</function></member>
|
|
<member><function>mysqli_fetch_assoc</function></member>
|
|
<member><function>mysqli_fetch_object</function></member>
|
|
<member><function>pg_fetch_row</function></member>
|
|
<member><function>pg_fetch_assoc</function></member>
|
|
<member><function>pg_fetch_array</function></member>
|
|
<member><function>pg_fetch_object</function></member>
|
|
<member><function>pg_fetch_all</function></member>
|
|
<member><function>pg_select</function></member>
|
|
<member><function>sybase_fetch_object</function></member>
|
|
<member><function>sybase_fetch_array</function></member>
|
|
<member><function>sybase_fetch_assoc</function></member>
|
|
<member><function>SplFileObject::fgets</function></member>
|
|
<member><function>SplFileObject::fgetcsv</function></member>
|
|
<member><function>SplFileObject::fwrite</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.zend.enable-gc">
|
|
<term>
|
|
<parameter>zend.enable_gc</parameter>
|
|
<type>boolean</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Habilita o deshabilita el colector de referencia circular.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
</para>
|
|
</section>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
--> |