Skip to content

Commit af621f7

Browse files
authored
random: lcg_value() is deprecated (#3992)
1 parent 07ab08b commit af621f7

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

reference/random/functions/lcg-value.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<refname>lcg_value</refname>
66
<refpurpose>Combined linear congruential generator</refpurpose>
77
</refnamediv>
8+
9+
<refsynopsisdiv>
10+
&warn.deprecated.function-8-4-0;
11+
</refsynopsisdiv>
12+
813
<refsect1 role="description">
914
&reftitle.description;
1015
<methodsynopsis>
@@ -46,6 +51,29 @@
4651
A pseudo random float value between 0.0 and 1.0, inclusive.
4752
</para>
4853
</refsect1>
54+
55+
<refsect1 role="changelog">
56+
&reftitle.changelog;
57+
<informaltable>
58+
<tgroup cols="2">
59+
<thead>
60+
<row>
61+
<entry>&Version;</entry>
62+
<entry>&Description;</entry>
63+
</row>
64+
</thead>
65+
<tbody>
66+
<row>
67+
<entry>8.4.0</entry>
68+
<entry>
69+
This function has been deprecated.
70+
</entry>
71+
</row>
72+
</tbody>
73+
</tgroup>
74+
</informaltable>
75+
</refsect1>
76+
4977
<refsect1 role="seealso">
5078
&reftitle.seealso;
5179
<para>

reference/random/versions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Do NOT translate this file -->
33
<versions>
44
<!-- Functions -->
5-
<function name="lcg_value" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
5+
<function name="lcg_value" from="PHP 4, PHP 5, PHP 7, PHP 8" deprecated="PHP 8.4.0"/>
66
<function name="mt_srand" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
77
<function name="srand" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
88
<function name="rand" from="PHP 4, PHP 5, PHP 7, PHP 8"/>

0 commit comments

Comments
 (0)