Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96279 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93839 invoked from network); 7 Oct 2016 06:33:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2016 06:33:03 -0000 Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.215.44 mail-lf0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:36621] helo=mail-lf0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/34-23443-C9147F75 for ; Fri, 07 Oct 2016 02:33:02 -0400 Received: by mail-lf0-f44.google.com with SMTP id b75so33434154lfg.3 for ; Thu, 06 Oct 2016 23:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=8jLFDcxV1nFF3s4stSHEKzGrUFrFABodZra+T6tHjKE=; b=Y7Os2HEBSiO3RghmD9JOQ4XqRhZ4oVC6yZILL69oBOfaDFVZ1Ns+j3N6YY7JfAi96o M4AksB5KQbGNiADtdld6sFwjBfopuw/18ZjBMqdH+Uo3l47vzaWaeRpK9C+8d9NSk95H u+xdNmrk/dJMZuFsE1pgAieaD927oXYYSyKr/zKxXpKHwLLv28ORdchFkuka2GsHNTWf CtPbgbW+TNpGw+0JkTa9o5fzLms5KzUbvV9nW2qpiByDdwzzEo8NVhmQv8CvfGPUYs3M kL63/+oJdHR3GaLmWyeoID2Ai8xVe6wep9lTFhieMwHdc3eDp9Hsg2gg5VMjEbYLDM72 AG3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8jLFDcxV1nFF3s4stSHEKzGrUFrFABodZra+T6tHjKE=; b=P8HaSYejfQ7/xZtg1/NafwtSgEKA/Jz6DSsNUDMowKPEFiIBsTdZBX/ekkif6W9MLH ys8JdzH3hrm3IzV43jabgzhjAJDD5b6yYmQTvwL7bf/iLsAiNTSya77nSzvbroEbmiPH oHT6OqvXq/7VQxiLP6ZDEJwliwmAdjDX2Mp29kUDck5vUUnslqBEAhmlDzTnOFbHsc1S ar+sA++RyvCB8J87yuBlP3uGi/a+1oJaJwrkNvv99eIugiSOYYXPzQVSsAiWcryKQmx9 Qs2Hl/HQ4lLOC9zeKS6p1xDH57z9fBsDM0hDjTna2wuvXBeXwkwM6LeFOpMG3TXbxTNK qeTg== X-Gm-Message-State: AA6/9Rkn1GNb8j1csb7TFsgu6MOvekW7DP5Zfe4rQA3Hz+fVjgkXwdE7mDq28t5LBqed5ByJ7hDwmhD+5AreLQ== X-Received: by 10.46.0.5 with SMTP id 5mr6422296lja.1.1475821976977; Thu, 06 Oct 2016 23:32:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 07 Oct 2016 06:32:46 +0000 Message-ID: To: Stephen Reay , PHP internals Content-Type: multipart/alternative; boundary=001a1142b998b098c5053e4094b8 Subject: Re: [PHP-DEV] [RFC] Bug #72811 - Replacing parse_url() From: dave@mudsite.com (David Walker) --001a1142b998b098c5053e4094b8 Content-Type: text/plain; charset=UTF-8 On Thu, Oct 6, 2016 at 10:13 PM Stephen Reay wrote: > Could the new URL parser be exposed via a third parameter to parse_url, > which defaults to false/off in 7.2 (or whenever its added) but then > defaults to true in 8.0? I, personally, would be opposed to this. Firstly, it doesn't alert users to the previous functionality being non-standards compliant. Secondly it allows the previous parser to exist in it's current state for a longer period of time, then in 8.0 exist as a function parameter. The goal should be to drop the standards-uncompliant version at some point. > Additionally, would(could) this same url parser be used for > FILTER_VALIDATE_URL, which currently states (in the docs) that it matches > RFC2396, and indeed it appears not to accept an IPv6 host segment. > I haven't yet looked at to how filter validation exists in conjunction with parse_url(), however as noted ( http://php.net/manual/en/filter.filters.validate.php#110411) the FILTER_VALIDATE_URL, may be strict to URL's not URN's. Maybe, a future scope could be to look at filter_var() and how it uses that filter type. Maybe could add a proper FILTER_VALIDATE_URI, or something. However that would be outside the scope of this RFC for right now, I believe. -- Dave --001a1142b998b098c5053e4094b8--