Skip to content

Commit

Permalink
Add links to INI_* constants
Browse files Browse the repository at this point in the history
Replace XInclude'd variablelist with a duplicate which does not have any IDs for the constants.
Add IDs to the variablelist on the constant page.
  • Loading branch information
haszi committed Jun 22, 2024
1 parent 4f6d374 commit 4d8e414
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
48 changes: 47 additions & 1 deletion install/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,53 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php

<para>
<variablelist>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('constant.ini-mode')/*)"><xi:fallback/></xi:include>
<title>INI mode constants</title>
<varlistentry>
<term>
<constant>INI_USER</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Entry can be set in user scripts (like with <function xmlns="http://docbook.org/ns/docbook">ini_set</function>)
or in the <link xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.windows">Windows registry</link>.
Entry can be set in &user-ini;
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>INI_PERDIR</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Entry can be set in &php.ini;, &htaccess;, &httpd.conf; or &user-ini;
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>INI_SYSTEM</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Entry can be set in &php.ini; or &httpd.conf;
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<constant>INI_ALL</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Entry can be set anywhere
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</sect1>
Expand Down
8 changes: 4 additions & 4 deletions reference/info/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@

<variablelist xml:id="constant.ini-mode" role="constant_list">
<title>INI mode constants</title>
<varlistentry>
<varlistentry xml:id="constant.ini-user">
<term>
<constant>INI_USER</constant>
(<type>int</type>)
Expand All @@ -214,7 +214,7 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry xml:id="constant.ini-perdir">
<term>
<constant>INI_PERDIR</constant>
(<type>int</type>)
Expand All @@ -225,7 +225,7 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry xml:id="constant.ini-system">
<term>
<constant>INI_SYSTEM</constant>
(<type>int</type>)
Expand All @@ -236,7 +236,7 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry xml:id="constant.ini-all">
<term>
<constant>INI_ALL</constant>
(<type>int</type>)
Expand Down

0 comments on commit 4d8e414

Please sign in to comment.