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,31 +39,30 @@
37
39
The decimal representation of <parameter>octal_string</parameter>
38
40
</para>
39
41
</refsect1>
42
+

40
43
<refsect1 role="changelog">
41
44
&reftitle.changelog;
42
-
<para>
43
-
<informaltable>
44
-
<tgroup cols="2">
45
-
<thead>
46
-
<row>
47
-
<entry>&Version;</entry>
48
-
<entry>&Description;</entry>
49
-
</row>
50
-
</thead>
51
-
<tbody>
52
-
<row>
53
-
<entry>4.1.0</entry>
54
-
<entry>
55
-
The function can now convert numbers that are too large to
56
-
fit into the platforms <type>integer</type> type, larger values
57
-
are returned as <type>float</type> in that case.
58
-
</entry>
59
-
</row>
60
-
</tbody>
61
-
</tgroup>
62
-
</informaltable>
63
-
</para>
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
64
</refsect1>
65
+

65
66
<refsect1 role="examples">
66
67
&reftitle.examples;
67
68
<para>
...
...
@@ -85,6 +86,16 @@ echo octdec(decoct(45));
85
86
</example>
86
87
</para>
87
88
</refsect1>
89
+
<refsect1 role="notes">
90
+
&reftitle.notes;
91
+
<note>
92
+
<para>
93
+
The function can convert numbers that are too large to fit into the platforms
94
+
<type>int</type> type, larger values are returned as <type>float</type> in
95
+
that case.
96
+
</para>
97
+
</note>
98
+
</refsect1>
88
99
<refsect1 role="seealso">
89
100
&reftitle.seealso;
90
101
<para>
91
102