Skip to content

Commit 9ab074d

Browse files
authored
Document fallback value syntax for ini variables (closes #4191) (#4192)
1 parent 8c41f7f commit 9ab074d

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

install/ini.xml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,23 @@
8888
PHP to attempt to read &php.ini; from the root filesystem if it exists.
8989
</para>
9090
</note>
91-
<para>
92-
Using environment variables can be used in &php.ini; as shown below.
93-
</para>
94-
<para>
95-
<example>
96-
<title>&php.ini; Environment Variables</title>
97-
<programlisting role="ini">
91+
<simpara>
92+
Environment variables can be referenced within configuration values
93+
in &php.ini; as shown below. As of PHP 8.3.0, a fallback value can
94+
be specified that will be used when the referenced variable is not
95+
defined.
96+
</simpara>
97+
<example>
98+
<title>&php.ini; Environment Variables</title>
99+
<programlisting role="ini">
98100
<![CDATA[
99101
; PHP_MEMORY_LIMIT is taken from environment
100102
memory_limit = ${PHP_MEMORY_LIMIT}
103+
; If PHP_MAX_EXECUTION_TIME is not defined, it will fall back to 30
104+
max_execution_time = ${PHP_MAX_EXECUTION_TIME:-30}
101105
]]>
102-
</programlisting>
103-
</example>
104-
</para>
106+
</programlisting>
107+
</example>
105108
<para>
106109
The &php.ini; directives handled by extensions are documented
107110
on the respective pages of the extensions themselves. A <link linkend="ini">list of

0 commit comments

Comments
 (0)