vrana Thu Mar 31 14:19:15 2005 EDT
Modified files:
/phpdoc/en/reference/network/functions inet-ntop.xml
Log:
Opossite function in example (bug #32520)
http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/inet-ntop.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/network/functions/inet-ntop.xml
diff -u phpdoc/en/reference/network/functions/inet-ntop.xml:1.2
phpdoc/en/reference/network/functions/inet-ntop.xml:1.3
--- phpdoc/en/reference/network/functions/inet-ntop.xml:1.2 Sat Aug 7
04:27:37 2004
+++ phpdoc/en/reference/network/functions/inet-ntop.xml Thu Mar 31 14:19:13 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="function.inet-ntop">
<refnamediv>
<refname>inet_ntop</refname>
@@ -24,13 +24,13 @@
<![CDATA[
<?php
$packed = chr(127) . chr(0) . chr(0) . chr(1);
-$expanded = inet_pton($packed);
+$expanded = inet_ntop($packed);
/* Outputs: 127.0.0.1 */
echo $expanded;
$packed = str_repeat(chr(0), 15) . chr(1);
-$expanded = inet_pton($packed);
+$expanded = inet_ntop($packed);
/* Outputs: ::1 */
echo $expanded;