Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126704 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 034D51A00BC for ; Mon, 10 Mar 2025 22:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741647360; bh=eyPhzvr4ko6ZUFh/Y6k4n7NO4J0tVOD9qYosBF+oiqo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ccDgZX6bs0a/XYFvKHV2oKLiZzlhF1OlRNcsXjGNbUsXfUZltHpmgSlU1fsd3awIf bW6CsfWcJa39avXzEEzrQbIIdDhTM3OyZKriK63DhS5dmyp4Be5xoxD471Ro6mJbfO DENK36qA0p6WpbDz7/F9ehgVNrsj9aDPOiVQGW76ZsibwxvwyC0s9Y2LBwKZ8wAyRI 4sV4wI8+QZPgKJTGNfSsCgnmh94MCwLN7FSoClMeWq1ekAGuSPW6lkAbU8LHvdw5ag kFIB2fgUbentReKbUCbZlrSs9jld1D1pRoqXaQZJIvXD2SMKhhoOYTtPPBy17AZ4lk mqPdrJiad/4Iw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BB837180069 for ; Mon, 10 Mar 2025 22:55:58 +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.1 required=5.0 tests=BAYES_40,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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 ; Mon, 10 Mar 2025 22:55:54 +0000 (UTC) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-4766cb762b6so20402511cf.0 for ; Mon, 10 Mar 2025 15:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741647507; x=1742252307; 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=eyPhzvr4ko6ZUFh/Y6k4n7NO4J0tVOD9qYosBF+oiqo=; b=W3GkJ3uz1eWPUtmlmISHQeNyETqxGbE2JbgQ1qSt71i/Uh8qcA5d/Cc6c3j8LVoU7L BrQbf1uh1fIbxZUAvbClSMWpImX1CIlT09nmbx+P8lcPDfiwUebjuwL78LKyE2zEuN/E aTbwoYeBLGtDlETSga8sF+g7jhxISz/7bZMd4wRurIJvjgp0ie/dP80Y9qjmT/hBoV8p w9g6I3S75BI6D4LJMrO3pbQ5Wf9fk6f6yMqf045+707RQp1vkJsjxjqyzBpI/xHBGX7l b/KJ+v+vGSLAZf2kAeZ3N2cQ6UkCG1XDM+aXOLILFSEbfc/cseuQUlpvnlLFPbY1Zq/e 3lzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741647507; x=1742252307; 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=eyPhzvr4ko6ZUFh/Y6k4n7NO4J0tVOD9qYosBF+oiqo=; b=ie3/ZmMOKILsrYbEFg7NNoxEarQffauVCzvML5/W0Fu7q62ajzDbDGS6kNq3IqMLnj 4tqdZH8Nen10F9oZWpAOtGR3RY+KYsnNrSNaRzEJbD4nuZsUIOwOkp2BFAyrwfCyokpq nIkifza7tEoxRZUWnSHkeZtuKc6oM37bcZP8iiUhNDl6hZHvjU8aNC6/vI3+PTFHRVmO vKclnn2vnm3bT1VJfKarYcgcpkTzkCQTZ/FbmTrAz42Ht/zCfaXxSaeTexjqgzOVsME3 E/WQ+fJQAKfZSyOd+9M9hEV1uJTMcYPXJ4TB2mHPd9W1V1QIBXmdsY3WuhLH6cb9XkNy Hyeg== X-Forwarded-Encrypted: i=1; AJvYcCVKpxWIgWW2USttyvOFawH+jn989QHmuxwdSTfeKgs1eJeWzN6V1ljruDyokmxhFhThspYgXC0Oe1o=@lists.php.net X-Gm-Message-State: AOJu0Ywz2LPKvfJ0Tu2JliiJAKKOL37n4URNusaf4k5HH0olRyforYXq +3tEeHeP8pk5T+8rJIdKzUVkGMUNtfmNCAQiRlCjiOwHdBVKzW0Jvjfpp3RLW9RSar03TZMxOok 1j6RMalLPEze0PWzvie6mWmU07owboomGq48jHA== X-Gm-Gg: ASbGncsw6+X4sJimhchz9dzsr2ILZxz+V5GkPMqkdS1EoHb/TSLPTkcQvljisY+pOWr zTEXRKzaANKmVcU+PjxJqKKyvYIVF1mdsSczAGqXG7BKPT4iiJCfHRyTBra3qZFPEAazvB8tSp5 mZZwiANGVQManopVcZBQiVdnVY0w== X-Google-Smtp-Source: AGHT+IHoi/cPbaC4BHnAPmyao2EwvJbgxfCFknsJCBwaGIyP0s45XF0BxjC9Igp8bJfRXSgb+VUpcwGzxGvF9ub98G0= X-Received: by 2002:a05:622a:5e8a:b0:471:80ef:35e7 with SMTP id d75a77b69052e-47699e8a2a1mr20044861cf.4.1741647506999; Mon, 10 Mar 2025 15:58:26 -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> <015e01db861b$09afb270$1d0f1750$@glaive.pro> <790c93f954ccd71b361da9556ae2a383@bastelstu.be> In-Reply-To: <790c93f954ccd71b361da9556ae2a383@bastelstu.be> Date: Mon, 10 Mar 2025 23:58:16 +0100 X-Gm-Features: AQ5f1JpWEAysfyJ-nC4hds9z7C7j_I3gwNWbsLeKrbBYmCBQqm9A8O3r1WDa41s Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Juris Evertovskis , Internals Content-Type: multipart/alternative; boundary="000000000000fa9035063004e867" From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000fa9035063004e867 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Juris and Tim, > Am 2025-02-23 18:47, schrieb Juris Evertovskis: > > As those are URI validation errors, maybe something like > > `Uri\WhatWg\ValidationError` would be both less clashy and less > > redundant? > > I like that suggestion. > > Best regards > Tim D=C3=BCsterhus > I liked it as well, so I changed the related classes the following way: - Uri\WhatWg\WhatWgError became Uri\WhatWg\UrlValidationError - Uri\WhatWg\WhatWgErrorType became Uri\WhatWg\UrlValidationErrorType This way, WhatWg is not duplicated in the FQCN, but the class name is still specific enough to possibly not clash with anything else. I could also imagine removing the Url prefix, but I like it, since it highlights that it's related to WHATWG URLs. Regards, M=C3=A1t=C3=A9 --000000000000fa9035063004e867 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi J= uris and Tim,
=C2=A0
Am 2025-02-23 18:47, schrieb Juris Evertovskis:
> As those are URI validation errors, maybe something like
> `Uri\WhatWg\ValidationError` would be both less clashy and less
> redundant?

I like that suggestion.

Best regards
Tim D=C3=BCsterhus

I liked it as well, = so I changed the related classes the following way:

-=C2=A0Uri\WhatWg\WhatWgError=C2=A0became Uri\WhatWg\UrlValidationError
-= =C2=A0Uri\WhatWg\WhatWgErrorType=C2= =A0became Uri\WhatWg\UrlValid= ationErrorType

=
This way, WhatWg i= s not duplicated=C2=A0in the FQCN, but the class name is still specific eno= ugh to possibly not clash with anything else.
I could also imagine removing the Url prefix, b= ut I like it, since it highlights that it's related to WHATWG URLs.

= Regards,
M=C3=A1t=C3=A9

--000000000000fa9035063004e867--