Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126763 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 8CD2D1A00BC for ; Fri, 14 Mar 2025 19:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741981923; bh=ManGo+ZP0rj8VJPT3P0gRL73HoeqxQQubk1AHkf2HLM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ONAfCbuNpLB2OlGwTQDvigvQR9nl3uN+ybpADGqiVG4XBOaJV4m7ueeaDK/c1s38Q oSPuiD1HbTlhIOW+cg0Hk4LNUSdZ33pqid63tBuZ4u7UYpByxexUIFiM/EKyC1LC/U iOom+iD9Rs0CF/auF6hdnf9uwWtcwzRVkqP4VaGz8Z9ba1XGjCrHe4XaWrvsbGjPQA dWYQwphVgjHTSAUU76f8MQarW0DCo8rJnSIsyV1DDGXFzWAbA986/Qzbhc7SEUNXg8 XyytOZ9hjm154s7mxO6wFWeFapDwU14/ZHiJzBep/WBb6BNittVuOdN2MIfAdsLh1w R+aI5VobtBuyg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA037180053 for ; Fri, 14 Mar 2025 19:52:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 14 Mar 2025 19:52:02 +0000 (UTC) Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-7c54b651310so323974285a.0 for ; Fri, 14 Mar 2025 12:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741982075; x=1742586875; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ManGo+ZP0rj8VJPT3P0gRL73HoeqxQQubk1AHkf2HLM=; b=RmAgLnpZdz9BWFBZshxSwP9E0pZtv8IsdczIPdTlxQhhlySloR5539EGiPetz8uOWv C0KeuOzJvI74LXtuYU6ZVx7fPT/CsYbyWsdqfUuE1krw2ZkDkgYTs78ZngsSHfbLNyBx fGrWbM9shCGwVg8+r4DaYz/ATFkRyAV0LEZrgL/h6JJaTHY6h/9tTod1aPM6VpDjZBOJ A3o1oCF+VlUNCMoOhS8emJMkiDZzVvOb/TzlBGU+dlluAVf5gPGZPGzOpX1/xXy0jGm+ oopc9XgR2yOOKtwiHL7Qu8WpIsapHEnFR8KSkJpy6DXi9fss9DOni9r3/3xCkeuFgw2K qfTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741982075; x=1742586875; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ManGo+ZP0rj8VJPT3P0gRL73HoeqxQQubk1AHkf2HLM=; b=d46K7fI3O7yeMlrkTxXzo7oPR6X7KfqSP2kR6UGQvCYiSqoH+in2tq762NI8IMv3H5 aIUtGodRn/Z5voQtqjrKg4/DnWrySOHlDAF4W3RhAQP5RAaCz/oO2tUZDNQysWjXeAxz rLPT+nkw6w+ep/rsCETj882c5mnkInreYJ2cnebMo2ICBlFET53rreotYAB1aJ8rAXQB 8/2EFL+Yalpx0FasbK7BsEKZ8vQVPbWSUXtPXQhEKNI0pBuiSn/RT6Jfql5i0+SVvO69 BrQnzB02i5nxqOiGQN+dXlPtQe/5DkMVF4iwGkiwiuJKzyY7LZBD6Rx6JhEXnu5EXTFA dlFw== X-Gm-Message-State: AOJu0YwnUMcpKdTEGWtHaSgwVhHm3GUiOlGmv7Pl1TOKJlReBJSGObV2 GyKk6USX1V3Fcsb5lXw7td1eJ23lyTfksdS+uzwrOosKRScvk3XbcfhXBMTGQ9MlTtOuruBs+KY phh0BA/mE37MOFe8X3Bww1V1+lJs= X-Gm-Gg: ASbGncuEyLqYaVqIjyB/8qfVBzWrBXsnwsmLT27BjmxyzgJpjH3v0pgSGsoVBMnCtUM yfaZt9bXe+MQPAzO1jVRIcSSI+MQP5i8lJoSvKDsoMr/vVAcVzpKkUuD4ZRm4okw2rs8jMkt9mY lXls6j0bBEoNpHfJWypQuBUjWxmg== X-Google-Smtp-Source: AGHT+IF7ErE0ELzyhWqdNbI21dAVKdXYjM1PjX0tILvp5uB9miDQXxyQSiQkHpf1PxYZtkJpLxkQJjkWS2zD7KLXTdE= X-Received: by 2002:a05:620a:1a88:b0:7c5:6375:1459 with SMTP id af79cd13be357-7c57c91a1c4mr642613985a.55.1741982074747; Fri, 14 Mar 2025 12:54:34 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <1BCB4144-231D-45EA-A914-98EE8F0F503A@automattic.com> <8E614C9C-BA85-45D8-9A4E-A30D69981C5D@automattic.com> <9bf11a89-39d9-457b-b0ea-789fd07d7370@gmail.com> In-Reply-To: Date: Fri, 14 Mar 2025 20:54:22 +0100 X-Gm-Features: AQ5f1JojFcFIMzqF34e21ptXvadkwUoaE1bsJnEH14Tr95w581PbAWS1EM57Ohg Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: Nicolas Grekas Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c5414e063052ce32" From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000c5414e063052ce32 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nicolas, For now, let me just quickly respond to your question regarding __debugInfo(): The RFC is also missing whether __debugInfo returns raw or non-raw > components. Then, I'm wondering if we need this per-component break for > debugging at all? It might be less confusing (on this encoding aspect) to > dump basically what __serialize() returns (under another key than __uri o= f > course). > This would also close the avenue of calling __debugInfo() directly (at th= e > cost of making it possibly harder to move away from parse_url(), but I > don't think we need to make this simpler - getting familiar with the new > API before would be required and welcome actually.) > I mostly have already answered this in my latest message to Ignace: yes, I think it makes sense to provide a clear picture about the anatomy of an URL in some cases. The method uses raw component values in order not to skew the original data. M=C3=A1t=C3=A9 --000000000000c5414e063052ce32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

For now, l= et me just quickly respond to your question regarding __debugInfo():
<= div>
=
The RFC is also missing whether __debugInfo= returns raw or non-raw components. Then, I'm wondering if we need this= per-component break for debugging at all? It might be less confusing (on t= his encoding aspect) to dump basically what=C2=A0__serialize() returns (und= er another key than __uri of course).
This would also close the a= venue of calling __debugInfo() directly (at the cost of making it possibly = harder to move away from parse_url(), but I don't think we need to make= this simpler - getting familiar=C2=A0with the new API before would be requ= ired and welcome actually.)

I mostly = have already answered this in my latest message to Ignace: yes, I think it = makes sense to provide a clear picture about the anatomy of an URL in=C2=A0= some cases. The method uses raw component values in order=C2=A0not to skew = the=C2=A0original data.

M=C3=A1t=C3=A9
= --000000000000c5414e063052ce32--