Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127237 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 lists.php.net (Postfix) with ESMTPS id E279F1A00BC for ; Tue, 29 Apr 2025 08:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1745916761; bh=TupjjeNn5kmSOJ+frqzQn584Glx6DKeCZjWkSlTdQWc=; h=References:In-Reply-To:From:Date:Subject:To:From; b=k7UjlVd6tZAOh+P1RIAnMkJOzTXXo1VrjPWn5MU4YEMbUJobnl7eD0n9bW3wbrSgv h3CsFy3HAXd913wshif6P4RNMaD+602E8sjBPub+mxnc18Vu1mXxpqRdMFXvqmDDTQ I6r+7n8yI4KWiEyCMufNEHFZyqi7Ght9JE2SFrJUSllMQQ4vU1PwEY+wXMjxPvDmXU qrEbSl/F7o27siOevzkXm2yoIsD99M5jVyTFW9I6WoJzb2dfzuM1IEMvJdGtIbIIsN 7oBYn2i1ZR+tZnl4Po0MMWeWUpxxOZvNfwxv2EsyKLDcH47DgsxZKhrY28VxFdhlEB FMYEUKR/ER4rw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 17F2A18002E for ; Tue, 29 Apr 2025 08:52:41 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 ; Tue, 29 Apr 2025 08:52:40 +0000 (UTC) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-306b6ae4fb2so5176125a91.3 for ; Tue, 29 Apr 2025 01:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745916896; x=1746521696; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=RWvsd1hxGbU7FN7QGfSlfFJekgdleDg0vl0nOKFUdaU=; b=UEu21VRTKxwsXciNj9nGH2E5AO16o3vom1bA7DU/rshWm5ExnOeV9Y26slQNDwfxdC 1KqD9vKsUyybhJnHhj07gdTMr0ED8yx54+a8RBN7u7mn4sF5ASUrC7mwqjRCAF2I3HnR uOyt9UC51GcgR6eymG9F4VBcfs13NqQ9n4QDc8InJ3gVNVPv87M1VAiWivLw+hGrGuBY 6epNusY0u0ADPOJ8NlcRMWkt+Uk4IE4kS2KBbMrQbsBR/B0Uu2hm+juFok3Luw5flKJA LvBQii6nnaRI3AZ8JVW4spTfierw1TQP7mllGtKtN5pWSJbdJU6kg+lxviiNIOIWVWih yWog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745916896; x=1746521696; h=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=RWvsd1hxGbU7FN7QGfSlfFJekgdleDg0vl0nOKFUdaU=; b=TjluzbykromMRudtDkX8UpYfAC7DN2yvk02uFRpJGydGmF8VBMSLlvCfpAUPgankqa OYnvDOSlZjQdJzlXZycOXG0rco1rRUaPQeduI3miMSGclz2Q2CoKqh27qogpllOoIGzE iPSjt9rBJGhlETcFSyHeotCyeKHa2mKgneJOknN/S2SNAmdDNPFJ6N6kyTQHHBentRGt 4illgqCZtUWI3Crw8f5O3xvEm/X/uv6fGa9cjmYMUTxmyd5xldg5nqP7JsGZUjlcsgfJ JQv0ApH817M4emxNmB5XlO8exB1p+qR2w+KQ7xHVZML/I7jY4go7D6foqy3kVYj/JDyv K8pg== X-Forwarded-Encrypted: i=1; AJvYcCUH/5WdqF/b5/QFbYvLsieySjy1bdRbJqqD5FJAltth6ftSjLJPJ9vUGOH5RztQbkozmE3PdNDLtx8=@lists.php.net X-Gm-Message-State: AOJu0YzfgLjtjTMafRrV3eMWLjVagMHdQES6O0VtP7Kt+yUKssdY7+a9 n9cbeF2nz7AmVXW60hQZ8a/HJ47eTD8pH70TU9zrOZmqyQWT+qcxv3QXHGRbanboWfq+Epjowqg E0P4AxyTKZMwzm01Npr+orF6APk8= X-Gm-Gg: ASbGncspqQEPi+dQL4SQ4lwfnburVBdJctrzfdfFSgwNZ7k9KG0QCxUfFD1YlLqvcu+ /4Ztqg8WNReVsQpLDtvXWWJ/AsmwUv5DcSfAl1uXkXrHVztaTAdqQACtkhIrlpDOCMss8N9fUGe LMYUWTUyNSrBIP2k+joUa+ng== X-Google-Smtp-Source: AGHT+IHhjS9Ta5/gLDzysZD9iR7vOPjtOtgrAe52WN3M35i1kL17bD6ZO3eEhEkU6+4pdd6oxLGZsJ/8N3h/L0Q3rWo= X-Received: by 2002:a17:90b:180d:b0:2ea:3f34:f18f with SMTP id 98e67ed59e1d1-30a2155e3a9mr3805518a91.19.1745916896465; Tue, 29 Apr 2025 01:54:56 -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> <8df04e01-deac-404b-beb7-cd982423db63@bastelstu.be> <33427cd03035ef084245c44290b56a55@bastelstu.be> <0aa1eefc3941bdea0092e935074daa58@bastelstu.be> <76d96ea8a78c6025128c0a4b01c94c0a@bastelstu.be> <07a8a580-4f0c-4b2f-8a67-b91dacfe99bf@bastelstu.be> In-Reply-To: Date: Tue, 29 Apr 2025 10:54:45 +0200 X-Gm-Features: ATxdqUEuZPlKZHCe4E5cj2OW5pYshZ5nrsYWcX0XffobvV9YOA1bLbFaPC_3fNQ Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= , PHP Internals List , =?UTF-8?Q?Tim_D=C3=BCsterhus?= Content-Type: multipart/alternative; boundary="0000000000006bd8870633e6f429" From: nyamsprod@gmail.com (ignace nyamagana butera) --0000000000006bd8870633e6f429 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mat=C3=A9 and Time, I have one last question while reviewing my polyfill implementation. Is it worth it adding a SensitiveParameter attribute on the argument of the following methods ? - Uri\Rfc3986\Uri::withUserInfo - Uri\WhatWg\Url::withPassword I'm fine with any answer ? Does it warrant a paragraph in the RFC ? That I do not know but I feel the question may be raised ? Best regards, Ignace Nyamagana Butera On Mon, Apr 28, 2025 at 11:31=E2=80=AFPM ignace nyamagana butera < nyamsprod@gmail.com> wrote: > Hi Mat=C3=A9, > > > I fiddled a little bit with the implementation, and I went with the > Uri\UriComparisonMode enum name at last. I hope that it is OK on your sid= e. > > If no one objects with your name choice I am fine with it, as long as it > is not a boolean :) I will adapt my polyfill. I think I have no more > remarks from my side of things, great job! Since I do not have the right > to vote I hope this one will pass when time for voting comes! > > On Mon, Apr 28, 2025 at 11:21=E2=80=AFPM M=C3=A1t=C3=A9 Kocsis > wrote: > >> Hi Ignace, >> >> The $excludeFragment is `true` by default so in the example it should be >>> `false` instead. Perhaps using an Enum instead would make the >>> DX easier than using a boolean ? >>> I believe the same issue is in all examples regarding the use of that >>> parameter. >>> >> >> You are right, I completely messed up the value of the $excludeFragment >> variables in the examples. After having thought about your suggestion, I= 'm >> fine with adding the enum. >> It's a bit verbose indeed, but at least it properly conveys the meaning >> of the parameter, so hopefully it will reduce the number of WTFs when >> people start to use the new API. :) >> >> I fiddled a little bit with the implementation, and I went with the >> Uri\UriComparisonMode enum name at last. I hope that it is OK on your si= de. >> >> Regards, >> M=C3=A1t=C3=A9 >> > --0000000000006bd8870633e6f429 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mat=C3=A9 and Time,

I have one last = question while reviewing my polyfill implementation. Is it worth=C2=A0it ad= ding a SensitiveParameter attribute on the argument of the following method= s ?

- Uri\Rfc3986\Uri::withUserInfo=C2=A0
- Uri\WhatWg\Url::withPassword

I'm fine with= any answer ? Does it warrant a paragraph in the RFC ? That I do not know b= ut I feel the question may be raised ?

Best regard= s,
Ignace Nyamagana Butera

On Mon, Apr= 28, 2025 at 11:31=E2=80=AFPM ignace nyamagana butera <nyamsprod@gmail.com> wrote:
Hi Mat=C3=A9= ,

> I fiddled a little bit with the implementat= ion, and I went with the Uri\UriComparisonMode enum name at last. I hope th= at it=C2=A0is OK on=C2=A0your side.

If no one objects w= ith your name choice I am fine with it, as long as it is not a boolean :)= =C2=A0 I will adapt my polyfill. I think I have no more remarks=C2=A0from m= y side of things, great job! Since I do not have=C2=A0 the right to vote I = hope this one will pass when time for voting comes!

On Mon, Apr 28, 2025 at = 11:21=E2=80=AFPM M=C3=A1t=C3=A9 Kocsis <kocsismate90@gmail.com> wrote:
=
Hi Ignace,

The $excludeFrag= ment is `true` by default so in the example it should be `false` instead. P= erhaps using an Enum instead would make the DX=C2=A0easier=C2=A0than using = a boolean ?
I believe the same issue is in all examples regarding the u= se of that parameter.

You are= =C2=A0right, I completely messed up the value of the $excludeFragment varia= bles in the examples. After having thought=C2=A0about your suggestion, I= 9;m fine with adding the enum.
It's a bit verbose indeed, but= at least it properly conveys the meaning of the parameter, so hopefully it= will reduce the number of WTFs when people start to use the new API. :)

I fiddled a little bit with the implementation, and = I went with the Uri\UriComparisonMode enum name at last. I hope that it=C2= =A0is OK on=C2=A0your side.

Regards,
M= =C3=A1t=C3=A9
--0000000000006bd8870633e6f429--