note 125711 added to function.inet-pton

From: Date: Fri, 22 Jan 2021 12:33:54 +0000
Subject: note 125711 added to function.inet-pton
Groups: php.notes 
Request: Send a blank email to php-notes+get-216217@lists.php.net to get a copy of this message
Regarding the ::127.0.0.1 notation It is a very special case that needs not to be handled. This kind of notation is reserved for ipv4-compatible ipv6 address. For example the notation ::ffff:192.0.2.128 can be easily read as "ipv6 address that maps to ipv4 address 192.0.2.128" However as RFC says: https://tools.ietf.org/html/rfc5156#page-2 2.2. IPv4-Mapped Addresses ::FFFF:0:0/96 are the IPv4-mapped addresses [RFC4291]. Addresses within this block should not appear on the public Internet. 2.3. IPv4-Compatible Addresses ::<ipv4-address>/96 are the IPv4-compatible addresses [RFC4291]. These addresses are deprecated and should not appear on the public Internet. This means that you only need to handle this kind of notation if you need to be compatible with private IP's ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.166 (proxied: 84.242.80.254) ---- Manual Page -- http://php.net/manual/en/function.inet-pton.php Edit -- https://master.php.net/note/edit/125711 Del: integrated -- https://master.php.net/note/delete/125711/integrated Del: useless -- https://master.php.net/note/delete/125711/useless Del: bad code -- https://master.php.net/note/delete/125711/bad+code Del: spam -- https://master.php.net/note/delete/125711/spam Del: non-english -- https://master.php.net/note/delete/125711/non-english Del: in docs -- https://master.php.net/note/delete/125711/in+docs Del: other reasons-- https://master.php.net/note/delete/125711 Reject -- https://master.php.net/note/reject/125711 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#216217) next »