Lines Matching refs:address
77 * @param string|mixed $address the address to parse
83 public static function fromString($address, $mayIncludePort = true, $mayIncludeZoneID = true) argument
86 … if (is_string($address) && strpos($address, ':') !== false && strpos($address, ':::') === false) {
88 …if ($mayIncludePort && $address[0] === '[' && preg_match('/^\[(.+)\]:\d+$/', $address, $matches)) {
89 $address = $matches[1];
92 $percentagePos = strpos($address, '%');
94 $address = substr($address, 0, $percentagePos);
97 … if (preg_match('/^([0:]+:ffff:)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/i', $address, $matches)) {
109 if (strpos($address, '::') === false) {
110 $chunks = explode(':', $address);
113 $parts = explode('::', $address);
164 $address = '';
167 $address .= ':';
171 $address .= sprintf('%02x', $byte);
173 $address = null;
177 if ($address !== null) {
178 $result = new static($address);