mirror of
https://github.com/php/doc-ru.git
synced 2026-04-23 15:28:24 +02:00
111 lines
3.1 KiB
XML
111 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: d715365c098db000eaf7dcd987ee6093f6e83091 Maintainer: bfl Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.long2ip" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>long2ip</refname>
|
|
<refpurpose>Конвертирует целое число в IPv4-адрес</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>long2ip</methodname>
|
|
<methodparam><type>int</type><parameter>ip</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Функция <function>long2ip</function> генерирует интернет-адреса
|
|
в формате разделённых точками чисел (то есть: aaa.bbb.ccc.ddd)
|
|
из длинного целочисленного представления.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>ip</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Правильное представление адреса в виде целого числа.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Функция возвращает IP-адрес в виде строки&return.falseforfailure;.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog"><!-- {{{ -->
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.1.0</entry>
|
|
<entry>
|
|
Тип параметра <parameter>ip</parameter> изменён
|
|
со строкового (<type>string</type>) на целочисленный (<type>int</type>).
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="notes"><!-- {{{ -->
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
На 32-битных архитектурах приведение целочисленных представлений
|
|
IP-адресов из строки (<type>string</type>) в целое число (<type>int</type>)
|
|
не даст правильных результатов для чисел, превышающих значение константы
|
|
<constant>PHP_INT_MAX</constant>.
|
|
</para>
|
|
</note>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ip2long</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|