Skip to content

Commit

Permalink
Apply revchecked skipped commit c60943fefc4ff8950460e76d714a463437cf0eb2
Browse files Browse the repository at this point in the history
Replace PHP_INI_* with INI_* constants
  • Loading branch information
Girgias committed Jan 26, 2024
1 parent a7edaa6 commit a50f1c3
Show file tree
Hide file tree
Showing 37 changed files with 461 additions and 461 deletions.
110 changes: 55 additions & 55 deletions appendices/ini.core.xml

Large diffs are not rendered by default.

232 changes: 116 additions & 116 deletions appendices/ini.list.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions appendices/ini.sections.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<tbody>
<row>
<entry><link linkend="ini.per-host">[HOST=]</link></entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.per-path">[PATH=]</link></entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion appendices/migration82/other-changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@

<para>
<link linkend="ini.sqlite3.defensive">sqlite3.defensive</link>
agora é <constant>PHP_INI_USER</constant>.
agora é <constant>INI_USER</constant>.
</para>
</sect3>

Expand Down
2 changes: 1 addition & 1 deletion features/commandline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ $ php -S 0.0.0.0:8000
<row>
<entry><link linkend="ini.cli-server.color">cli_server.color</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
32 changes: 16 additions & 16 deletions install/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
</simpara>
<simpara>
Somente configurações INI com
os modos <constant>PHP_INI_PERDIR</constant> e
<constant>PHP_INI_USER</constant> serão reconhecidos nos arquivos INI estilo
os modos <constant>INI_PERDIR</constant> e
<constant>INI_USER</constant> serão reconhecidos nos arquivos INI estilo
.user.ini.
</simpara>

Expand Down Expand Up @@ -253,16 +253,16 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<para>
Por exemplo, a configuração
<link linkend="ini.output-buffering">output_buffering</link>
é <literal>PHP_INI_PERDIR</literal> portanto não pode ser definida usando
é <constant>INI_PERDIR</constant> portanto não pode ser definida usando
<function>ini_set</function>. Entretanto a diretiva
<link linkend="ini.display-errors">display_errors</link> é
<literal>PHP_INI_ALL</literal> portanto pode ser definida em qualquer lugar
<constant>INI_ALL</constant> portanto pode ser definida em qualquer lugar
com <function>ini_set</function>.
</para>

<para>
<table>
<title>Definição dos modos PHP_INI_*</title>
<title>Definição dos modos INI_*</title>
<tgroup cols="2">
<thead>
<row>
Expand All @@ -272,25 +272,25 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
</thead>
<tbody>
<row>
<entry><literal>PHP_INI_USER</literal></entry>
<entry><constant>INI_USER</constant></entry>
<entry>
A entrada pode ser definida nos scripts do usuário (com <function>ini_set</function>)
ou no <link linkend="configuration.changes.windows">registro do Windows</link>.
A entrada pode ser definida no &user-ini;
</entry>
</row>
<row>
<entry><literal>PHP_INI_PERDIR</literal></entry>
<entry><constant>INI_PERDIR</constant></entry>
<entry>
A entrada pode ser definida no &php.ini;, &htaccess;, &httpd.conf; ou &user-ini;
</entry>
</row>
<row>
<entry><literal>PHP_INI_SYSTEM</literal></entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>A entrada pode ser definida no &php.ini; ou &httpd.conf;</entry>
</row>
<row>
<entry><literal>PHP_INI_ALL</literal></entry>
<entry><constant>INI_ALL</constant></entry>
<entry>A entrada pode ser definida em qualquer lugar</entry>
</row>
</tbody>
Expand All @@ -315,8 +315,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
Há várias diretivas do Apache que permitem que você
mude a configuração do PHP de dentro dos arquivos de configuração
do Apache. Para uma lista de quais diretivas são
<constant>PHP_INI_ALL</constant>, <constant>PHP_INI_PERDIR</constant>,
or <constant>PHP_INI_SYSTEM</constant>, olhe no apêndice
<constant>INI_ALL</constant>, <constant>INI_PERDIR</constant>,
or <constant>INI_SYSTEM</constant>, olhe no apêndice
<link linkend="ini.list">Lista de diretivas do arquivo php.ini</link>.
</para>

Expand All @@ -331,7 +331,7 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<listitem>
<para>
Define o valor da diretiva especificada.
Pode ser usado apenas com diretivas do tipo <constant>PHP_INI_ALL</constant> e <constant>PHP_INI_PERDIR</constant>.
Pode ser usado apenas com diretivas do tipo <constant>INI_ALL</constant> e <constant>INI_PERDIR</constant>.
Para limpar um valor definido anteriormente, use o valor <literal>none</literal>.
</para>
<note>
Expand All @@ -351,8 +351,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<listitem>
<para>
Usado para definir uma diretiva de configuração booleana.
Pode ser usada apenas com diretivas dos tipos <constant>PHP_INI_ALL</constant> e
<constant>PHP_INI_PERDIR</constant>.
Pode ser usada apenas com diretivas dos tipos <constant>INI_ALL</constant> e
<constant>INI_PERDIR</constant>.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -435,8 +435,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
devem ter o nome da diretiva de configuração do PHP e um
valor string. Constantes PHP nos valores não são interpretados.
Apenas valores de configuração modificáveis no
<constant>PHP_INI_USER</constant> podem ser definidos
desta forma, e valores do <constant>PHP_INI_PERDIR</constant> não podem,
<constant>INI_USER</constant> podem ser definidos
desta forma, e valores do <constant>INI_PERDIR</constant> não podem,
pois esses valores são recarregados em cada request.
</simpara>
</sect2>
Expand Down
2 changes: 1 addition & 1 deletion language-snippets.ent
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ O comportamento destas funções é afetado pelas configurações do &php.ini;.
</simpara>'>

<!ENTITY ini.php.constants 'Para mais detalhes e definições dos modos
PHP_INI_*, consulte os <xref xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.modes"/>.'>
INI_*, consulte os <xref xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.modes"/>.'>

<!-- Used in reference/$extname/constants.xml -->
<!ENTITY extension.constants '<simpara xmlns="http://docbook.org/ns/docbook">
Expand Down
2 changes: 1 addition & 1 deletion language/namespaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ echo \Foo\Bar\FOO; // será resolvido para a constante Foo\Bar\FOO
Note que para acessar qualquer classe,
função ou constante global, um nome totalmente qualificado pode ser usado, como
<function>\strlen</function> ou <classname>\Exception</classname> ou
<literal>\INI_ALL</literal>.
\<constant>INI_ALL</constant>.
<example>
<title>Acessando classes, funções e constantes globais em um namespace</title>
<programlisting role="php">
Expand Down
8 changes: 4 additions & 4 deletions reference/apache/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@
<row>
<entry><link linkend="ini.engine">engine</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.child-terminate">child_terminate</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.last-modified">last_modified</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.xbithack">xbithack</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion reference/bc/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<row>
<entry><link linkend="ini.bcmath.scale">bcmath.scale</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion reference/curl/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<row>
<entry><link linkend="ini.curl.cainfo">curl.cainfo</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
10 changes: 5 additions & 5 deletions reference/datetime/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@
<row>
<entry><link linkend="ini.date.default-latitude">date.default_latitude</link></entry>
<entry>"31.7667"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.date.default-longitude">date.default_longitude</link></entry>
<entry>"35.2333"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.date.sunrise-zenith">date.sunrise_zenith</link></entry>
<entry>"90.833333"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Antes do PHP 8.0.0, o padrão era "90.583333"</entry>
</row>
<row>
<entry><link linkend="ini.date.sunset-zenith">date.sunset_zenith</link></entry>
<entry>"90.833333"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Antes do PHP 8.0.0, o padrão era "90.583333"</entry>
</row>
<row>
<entry><link linkend="ini.date.timezone">date.timezone</link></entry>
<entry>"UTC"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>A partir do PHP 8.2, um aviso é emitido quando este parâmetros é configurado para um valor
inválido ou para um string vazio.</entry>
</row>
Expand Down
42 changes: 21 additions & 21 deletions reference/errorfunc/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,129 +19,129 @@
<row>
<entry><link linkend="ini.error-reporting">error_reporting</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.display-errors">display_errors</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.display-startup-errors">display_startup_errors</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>
Antes do PHP 8.0.0, o valor padrão era <literal>"0"</literal>.
</entry>
</row>
<row>
<entry><link linkend="ini.log-errors">log_errors</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.log-errors-max-len">log_errors_max_len</link></entry>
<entry>"1024"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Sem efeito a partir do PHP 8.0.0, removido a partir do PHP 8.1.0.</entry>
</row>
<row>
<entry><link linkend="ini.ignore-repeated-errors">ignore_repeated_errors</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.ignore-repeated-source">ignore_repeated_source</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.report-memleaks">report_memleaks</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.track-errors">track_errors</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Defasado a partir do PHP 7.2.0, removido a partir do PHP 8.0.0.</entry>
</row>
<row>
<entry><link linkend="ini.html-errors">html_errors</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.xmlrpc-errors">xmlrpc_errors</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.xmlrpc-error-number">xmlrpc_error_number</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.docref-root">docref_root</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.docref-ext">docref_ext</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.error-prepend-string">error_prepend_string</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.error-append-string">error_append_string</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.error-log">error_log</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.error-log-mode">error_log_mode</link></entry>
<entry>0o644</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Disponível a partir do PHP 8.2.0</entry>
</row>
<row>
<entry><link linkend="ini.syslog.facility">syslog.facility</link></entry>
<entry>"LOG_USER"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>Disponível a partir do PHP 7.3.0.</entry>
</row>
<row>
<entry><link linkend="ini.syslog.filter">syslog.filter</link></entry>
<entry>"no-ctrl"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Disponível a partir do PHP 7.3.0.</entry>
</row>
<row>
<entry><link linkend="ini.syslog.ident">syslog.ident</link></entry>
<entry>"php"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>Disponível a partir do PHP 7.3.0.</entry>
</row>
</tbody>
Expand Down
Loading

0 comments on commit a50f1c3

Please sign in to comment.