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 eb90be3 commit 8ec6271
Show file tree
Hide file tree
Showing 42 changed files with 396 additions and 396 deletions.
108 changes: 54 additions & 54 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 @@ -33,12 +33,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 @@ -210,7 +210,7 @@

<para>
<link linkend="ini.sqlite3.defensive">sqlite3.defensive</link> ist nun
<constant>PHP_INI_USER</constant>.
<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 @@ -1923,7 +1923,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
34 changes: 17 additions & 17 deletions install/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
nur das Verzeichnis, in dem sich die Datei befindet, durchsucht.
</simpara>
<simpara>
Nur INI-Einstellungen mit den Modi <constant>PHP_INI_PERDIR</constant>
und <constant>PHP_INI_USER</constant> werden als .user.ini-INI-Dateien
Nur INI-Einstellungen mit den Modi <constant>INI_PERDIR</constant>
und <constant>INI_USER</constant> werden als .user.ini-INI-Dateien
erkannt.
</simpara>

Expand Down Expand Up @@ -271,16 +271,16 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<para>
Ein Beispiel ist die <link
linkend="ini.output-buffering">output_buffering</link>-Einstellung.
Wegen <literal>PHP_INI_PERDIR</literal> kann sie nicht mittels
Wegen <constant>INI_PERDIR</constant> kann sie nicht mittels
<function>ini_set</function> gesetzt werden. Die <link
linkend="ini.display-errors">display_errors</link>-Einstellung
hingegegen kann wegen <literal>PHP_INI_ALL</literal> überall
hingegegen kann wegen <constant>INI_ALL</constant> überall
gesetzt werden, also auch mittels <function>ini_set</function>.
</para>

<para>
<table>
<title>Definition der PHP_INI_*-Modi</title>
<title>Definition der INI_*-Modi</title>
<tgroup cols="3">
<thead>
<row>
Expand All @@ -290,7 +290,7 @@ $ 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>
Eintrag kann in Benutzerskripten (z. B. mittels
<function>ini_set</function>) oder in der
Expand All @@ -299,20 +299,20 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
</entry>
</row>
<row>
<entry><literal>PHP_INI_PERDIR</literal></entry>
<entry><constant>INI_PERDIR</constant></entry>
<entry>
Der Eintrag kann in der &php.ini;, &htaccess;, &httpd.conf; oder
&user-ini; gesetzt werden
</entry>
</row>
<row>
<entry><literal>PHP_INI_SYSTEM</literal></entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>
Eintrag kann in der &php.ini; oder &httpd.conf; gesetzt werden
</entry>
</row>
<row>
<entry><literal>PHP_INI_ALL</literal></entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Eintrag kann überall gesetzt werden</entry>
</row>
</tbody>
Expand All @@ -338,8 +338,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
Es gibt verschiedene Apachedirektiven, die es erlauben,
die PHP-Konfiguration aus den Apache-Konfigurationsdateien heraus zu
ändern. Für eine Liste von Direktiven, die als
<constant>PHP_INI_ALL</constant>, <constant>PHP_INI_PERDIR</constant>,
oder <constant>PHP_INI_SYSTEM</constant> definiert sind, werfen Sie einen
<constant>INI_ALL</constant>, <constant>INI_PERDIR</constant>,
oder <constant>INI_SYSTEM</constant> definiert sind, werfen Sie einen
Blick auf den Anhang
<link linkend="ini.list">Liste von php.ini Einstellungen</link>.
</para>
Expand All @@ -355,8 +355,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<listitem>
<para>
Setzt den Wert der angegebenen Direktive.
Kann nur für Direktiven mit den Typen <constant>PHP_INI_ALL</constant>
und <constant>PHP_INI_PERDIR</constant> verwendet werden. Um einen
Kann nur für Direktiven mit den Typen <constant>INI_ALL</constant>
und <constant>INI_PERDIR</constant> verwendet werden. Um einen
vorher gesetzten Wert zu löschen, verwenden Sie
<literal>none</literal> als Wert.
</para>
Expand All @@ -379,8 +379,8 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
<listitem>
<para>
Setzt eine boolesche Konfigurationsdirektive.
Kann nur für Direktiven mit den Typen <constant>PHP_INI_ALL</constant>
und <constant>PHP_INI_PERDIR</constant> verwendet werden.
Kann nur für Direktiven mit den Typen <constant>INI_ALL</constant>
und <constant>INI_PERDIR</constant> verwendet werden.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -471,9 +471,9 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
Die Werte in diesem Schlüssel sollten den Namen eine PHP-
Konfigurationsdirektive und einen Zeichenkettenwert haben.
Konstenten in den Werten werden nicht ausgewertet. Es können jedoch
nur Werte, die in <constant>PHP_INI_USER</constant> änderbar sind,
nur Werte, die in <constant>INI_USER</constant> änderbar sind,
auf diese Weise gesetzt werden, nicht als
<constant>PHP_INI_PERDIR</constant> deklarierte Werte,
<constant>INI_PERDIR</constant> deklarierte Werte,
da diese Konfigurationswerte für jeden Request erneut gelesen werden.
</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 @@ -1972,7 +1972,7 @@ Konfigurationsoptionen:</para>'>
durch Einstellungen in der &php.ini; beeinflusst.</simpara>'>

<!ENTITY ini.php.constants 'Weitere Details und die Definitionen der
PHP_INI_*-Konstanten finden Sie im <xref xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.modes"/>.'>
INI_*-Konstanten finden Sie im <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">Folgende Konstanten werden von dieser
Expand Down
2 changes: 1 addition & 1 deletion language/namespaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ echo \Foo\Bar\FOO; // gibt die Konstante Foo\Bar\FOO aus
Beachten Sie, dass für den Zugriff auf jede globale Klasse, Funktion oder
Konstante9 auch ein vollständig qualifizierter Name verwendet werden kann,
wie &zb; <function>\strlen</function>, <classname>\Exception</classname>
oder <literal>\INI_ALL</literal>.
oder \<constant>INI_ALL</constant>.
<example>
<title>Zugriff auf globale Klassen, Funktionen und Konstanten aus einem 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 @@ -30,25 +30,25 @@
<row>
<entry><link linkend="ini.engine">engine</link></entry>
<entry>On</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>Off</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>Off</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>Off</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 @@ -20,7 +20,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 @@ -20,7 +20,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 @@ -22,31 +22,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>Vor PHP 8.0.0 war der Standardwert "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>Vor PHP 8.0.0 war der Standardwert "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>
Seit PHP 8.2 wird eine Warnung ausgegeben, wenn dies auf einen
ungültigen Wert oder eine leere Zeichenkette gesetzt wird.
Expand Down
2 changes: 1 addition & 1 deletion reference/dba/setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<link linkend="ini.dba.default_handler">dba.default_handler</link>
</entry>
<entry>DBA_DEFAULT</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
</tbody>
Expand Down
12 changes: 6 additions & 6 deletions reference/exif/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@
<row>
<entry><link linkend="ini.exif.encode-unicode">exif.encode_unicode</link></entry>
<entry>"ISO-8859-15"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.exif.decode-unicode-motorola">exif.decode_unicode_motorola</link></entry>
<entry>"UCS-2BE"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.exif.decode-unicode-intel">exif.decode_unicode_intel</link></entry>
<entry>"UCS-2LE"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.exif.encode-jis">exif.encode_jis</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.exif.decode-jis-motorola">exif.decode_jis_motorola</link></entry>
<entry>"JIS"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.exif.decode-jis-intel">exif.decode_jis_intel</link></entry>
<entry>"JIS"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
14 changes: 7 additions & 7 deletions reference/filesystem/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,43 @@
<row>
<entry><link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.allow-url-include">allow_url_include</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>Missbilligt von PHP 7.4.0 an.</entry>
</row>
<row>
<entry><link linkend="ini.user-agent">user_agent</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.default-socket-timeout">default_socket_timeout</link></entry>
<entry>"60"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.from">from</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.auto-detect-line-endings">auto_detect_line_endings</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Missbilligt von PHP 8.1.0 an.</entry>
</row>
<row>
<entry><link linkend="ini.sys-temp-dir">sys_temp_dir</link></entry>
<entry>""</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions reference/filter/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<row>
<entry><link linkend="ini.filter.default">filter.default</link></entry>
<entry>"unsafe_raw"</entry>
<entry>PHP_INI_PERDIR</entry>
<entry><constant>INI_PERDIR</constant></entry>
<entry>Seit PHP 8.1.0 veraltet.</entry>
</row>
<row>
<entry><link linkend="ini.filter.default-flags">filter.default_flags</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_PERDIR</entry>
<entry><constant>INI_PERDIR</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion reference/image/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<row>
<entry><link linkend="ini.gd.jpeg-ignore-warning">gd.jpeg_ignore_warning</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
</tbody>
Expand Down
Loading

0 comments on commit 8ec6271

Please sign in to comment.