Skip to content

Commit 0425027

Browse files
jordikroonTimWolla
andauthored
Add PHP_BUILD_DATE and PHP_BUILD_PROVIDER constants (#5058)
Document two new predefined constants introduced in PHP 8.5.0: - PHP_BUILD_DATE: Returns the date and time when PHP was built - PHP_BUILD_PROVIDER: Returns the provider who built PHP --------- Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
1 parent 77fca24 commit 0425027

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

appendices/reserved.constants.core.xml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,34 @@
8080
</simpara>
8181
</listitem>
8282
</varlistentry>
83+
<varlistentry xml:id="constant.php-build-date">
84+
<term>
85+
<constant>PHP_BUILD_DATE</constant>
86+
(<type>string</type>)
87+
</term>
88+
<listitem>
89+
<simpara>
90+
The date and time when PHP was built, in <literal>"M d Y H:i:s"</literal> format. Available as of PHP 8.5.0.
91+
</simpara>
92+
</listitem>
93+
</varlistentry>
94+
<varlistentry xml:id="constant.php-build-provider">
95+
<term>
96+
<constant>PHP_BUILD_PROVIDER</constant>
97+
(<type>string</type>)
98+
</term>
99+
<listitem>
100+
<simpara>
101+
The provider who built PHP. Available as of PHP 8.5.0.
102+
</simpara>
103+
<note>
104+
<simpara>
105+
This constant may not be available in all builds of PHP. (e.g., not set when
106+
building from source without specifying a value during configuration).
107+
</simpara>
108+
</note>
109+
</listitem>
110+
</varlistentry>
83111
<varlistentry xml:id="constant.zend-thread-safe">
84112
<term>
85113
<constant>ZEND_THREAD_SAFE</constant>
@@ -401,6 +429,11 @@
401429
<simpara>
402430
Specifies where the manpages were installed into.
403431
</simpara>
432+
<note>
433+
<simpara>
434+
This constant is not present on Windows builds of PHP.
435+
</simpara>
436+
</note>
404437
</listitem>
405438
</varlistentry>
406439
<varlistentry xml:id="constant.php-libdir">
@@ -691,10 +724,10 @@
691724
</listitem>
692725
</varlistentry>
693726
</variablelist>
694-
<para>
727+
<simpara>
695728
See also: <link linkend="language.constants.magic">Magic
696729
constants</link>.
697-
</para>
730+
</simpara>
698731
</sect2>
699732
<!-- Keep this comment at the end of the file
700733
Local variables:

0 commit comments

Comments
 (0)