reference/math/functions/octdec.xml
86e6094e86b84a51d00ab217ac50ce8dde33d82a
...
...
@@ -8,7 +8,7 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>number</type><methodname>octdec</methodname>
11
+
<type class="union"><type>int</type><type>float</type></type><methodname>octdec</methodname>
12
12
<methodparam><type>string</type><parameter>octal_string</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
...
...
@@ -24,7 +24,9 @@
24
24
<term><parameter>octal_string</parameter></term>
25
25
<listitem>
26
26
<para>
27
-
The octal string to convert
27
+
The octal string to convert.
28
+
Any invalid characters in <parameter>octal_string</parameter> are silently ignored.
29
+
As of PHP 7.4.0 supplying any invalid characters is deprecated.
28
30
</para>
29
31
</listitem>
30
32
</varlistentry>
...
...
@@ -37,6 +39,30 @@
37
39
The decimal representation of <parameter>octal_string</parameter>
38
40
</para>
39
41
</refsect1>
42
+

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<informaltable>
46
+
<tgroup cols="2">
47
+
<thead>
48
+
<row>
49
+
<entry>&Version;</entry>
50
+
<entry>&Description;</entry>
51
+
</row>
52
+
</thead>
53
+
<tbody>
54
+
<row>
55
+
<entry>7.4.0</entry>
56
+
<entry>
57
+
Passing invalid characters will now generate a deprecation notice.
58
+
The result will still be computed as if the invalid characters did not exist.
59
+
</entry>
60
+
</row>
61
+
</tbody>
62
+
</tgroup>
63
+
</informaltable>
64
+
</refsect1>
65
+

40
66
<refsect1 role="examples">
41
67
&reftitle.examples;
42
68
<para>
...
...
@@ -65,7 +91,7 @@ echo octdec(decoct(45));
65
91
<note>
66
92
<para>
67
93
The function can convert numbers that are too large to fit into the platforms
68
-
<type>integer</type> type, larger values are returned as <type>float</type> in
94
+
<type>int</type> type, larger values are returned as <type>float</type> in
69
95
that case.
70
96
</para>
71
97
</note>
72
98