reference/network/functions/long2ip.xml
d715365c098db000eaf7dcd987ee6093f6e83091
...
...
@@ -3,14 +3,14 @@
3
3
<refentry xml:id="function.long2ip" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>long2ip</refname>
6
-
<refpurpose>Converts an long integer address into a string in (IPv4) Internet standard dotted format</refpurpose>
6
+
<refpurpose>Converts a long integer address into a string in (IPv4) Internet standard dotted format</refpurpose>
7
7
</refnamediv>
8
8
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>long2ip</methodname>
13
-
<methodparam><type>int</type><parameter>proper_address</parameter></methodparam>
13
+
<methodparam><type>int</type><parameter>ip</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
The function <function>long2ip</function> generates an Internet address
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>proper_address</parameter></term>
27
+
<term><parameter>ip</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
A proper address representation in long integer.
...
...
@@ -38,7 +38,7 @@
38
38
<refsect1 role="returnvalues">
39
39
&reftitle.returnvalues;
40
40
<para>
41
-
Returns the Internet IP address as a string.
41
+
Returns the Internet IP address as a string, &return.falseforfailure;.
42
42
</para>
43
43
</refsect1>
44
44

...
...
@@ -56,8 +56,8 @@
56
56
<row>
57
57
<entry>7.1.0</entry>
58
58
<entry>
59
-
The parameter type of <parameter>proper_address</parameter> has been
60
-
changed from <type>string</type> to <type>integer</type>.
59
+
The parameter type of <parameter>ip</parameter> has been
60
+
changed from <type>string</type> to <type>int</type>.
61
61
</entry>
62
62
</row>
63
63
</tbody>
...
...
@@ -70,7 +70,7 @@
70
70
<note>
71
71
<para>
72
72
On 32-bit architectures, casting integer representations of IP addresses
73
-
from <type>string</type> to <type>integer</type> is not suppossed to give
73
+
from <type>string</type> to <type>int</type> will not give
74
74
correct results for numbers which exceed <constant>PHP_INT_MAX</constant>.
75
75
</para>
76
76
</note>
...
...
@@ -86,7 +86,6 @@
86
86
</refsect1>
87
87

88
88
</refentry>
89
-

90
89
<!-- Keep this comment at the end of the file
91
90
Local variables:
92
91
mode: sgml
93
92