* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Url extends Uri { protected function parse($url) { $url = (string) $url; // append http scheme for urls starting with //. Normally // means that // we use the scheme from the base url but in this context there is no // base url available so we assume http if (substr($url, 0, 2) == '//') { $url = 'http:' . $url; } parent::parse($url); // we need at least a scheme and host if (empty($this->scheme) || empty($this->host)) { throw new InvalidArgumentException('Invalid url syntax'); } // check port if available if ($this->port !== null) { if ($this->port < 1 || $this->port > 0xFFFF) { throw new InvalidArgumentException('Invalid port range'); } } } } __halt_compiler();----SIGNATURE:----dJH0oGJyFqihPRrByLZLvEifohPySplW3sgggZgN1E4Pglt6p+wZP/KkHzzhLM18D4M2b8R1HkHNMjaaxd2N5aP2DcNuaG+I7DV4PQy1JgJSE53LCfGJh1z5QlDbaIzUoxylLH/OfcKQYCCqRDoRh5kIg7ZNPgCN97FGEMEm7S8572HPWi3uvRP/CeRkpCpAiSAMfEfx1PVEW0JKZxmt2KRwQFBNl9dibOytI3mhWNcgStTiLWWmhQrrZrewzhPreCCSGdtrszbqS7Kt/jBxXn0Ct9GlJDoDjCLetbg5KjREmx50OtCc26HeAF7VkPSBlwmmRJu0FdwSDlYEvvlctBVcTZU3iLQxqMJqJ6w85LK7TBl8sguwHM0naWy3kkWiYu9YK+7FOgttnmcQ4IAf2Ny6x7aFsxBtC7JH/UTNumeB6zFLH6eKYVGbkAnvdCfTOqM11rT8YD2BQjPnGnY/W5cqUNDH/5fZxQnFNjB919bNL25YsFNp9Me+bvECqur/Xz9mpZsFgklCsV+SLgkr7l9h3bSeWnAbMntgi13+vJLFDQxK+7OymM1MCO94Hrx9RQm2SoK34qzngBEhcd7DMtYl/63Lx6chg1YbBZ+xzGe5VhOz7Hw3cgMFQ8TMoa2OtvFHQXi0q8NqW6kuHMZTuRzXu6bfx2BEH4d4B1PG1CY=----ATTACHMENT:----MjE2MDU0MTg5MzMzNjYwMSA3MTE0NzE0MjI3Mzg2MTQ3IDk5OTczMjUwMjQ0Mjc2MzI=