Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127275 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 635981A00BC for ; Sat, 3 May 2025 21:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1746306344; bh=Bbrbr+P4n/tGch8/bZrqJBYO81FoxeF/nxbUAy42prY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HFJXaiPi8yohk3RbZgnpzT4w96tEbbOXt/SqBHyrQRnOOiVFGN/tAEhn9+VuXxLWQ +edNf49dm4DvVyAujasGL2cZblcC+mtuf1RkhkDkVd2dS6S0QM+t61srWSYBJ0CDP5 pPCjYbr9XTO8QJtfbtwgp8H0zKYLljlhl3onbb9wAhciJ5QlN8IPyMWrGdPzzxBXi7 Hme3bAM1kkyqpZ5F/8HRsSKzNvXG+nCUGbqjbTXlPIS92Op6dtDTVwRmwpEhT3hAOz CmdDDqPGyuOnh9jjuPwcHUSr0R9ouwQnIHevtfpDUwk6T6qmC63ILRr4E2prWmBE4j zS2+bpTsLm/HQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C414A180080 for ; Sat, 3 May 2025 21:05:42 +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.9 required=5.0 tests=BAYES_50,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: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 ; Sat, 3 May 2025 21:05:40 +0000 (UTC) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-476f4e9cf92so24991531cf.3 for ; Sat, 03 May 2025 14:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746306474; x=1746911274; 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=Bbrbr+P4n/tGch8/bZrqJBYO81FoxeF/nxbUAy42prY=; b=YwEe8uRkFHfMtAz37Ql8jZbJUqgiauFW3gkkjrKCGPSHMUvrPDs++IMbhki36ceHzX 6mtVgy7bUZNNjIMSEfPRMtGuOfK0ilDn1jMbPkfhAK7fDeVnp4D5SGdpfyngLzdBQXuJ mn6aIk+rWCfc3S8TaEIsr3Cu66HkalcTIA/k9N6ujIEfjvICHjIoKmwHiNfYeGnAQdnN AI+HlW7xPYXZrhwM4u88Y6G+CnV07if6e6KOR/bQ3qATmwuKuxoRKADNUTUuqNEEIO6m mzi1jIG4SYGMAtLxSTqj6vPPCBeAEQj9wtkXazWwivaJzLl2nmZDOmQMv2ZlXadt1OHR XOwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746306474; x=1746911274; 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=Bbrbr+P4n/tGch8/bZrqJBYO81FoxeF/nxbUAy42prY=; b=qBQuvuxC2cZTeKptLLQT/PQTn7mB4fif4nWaTEzWDNXvGZSpUlpI13xggQUwMgHc2X p11guReXDt5Atz30robdH2+KMHC6HybSaBOpxZLU0IEPpfkb7qEKTXcOUm5B/u6LaoZA 9ZqW0Ekk4ji0hKD+JBD7MHqlQvcrhOQje7nuv4F/t6a7ggkzEReAApLpLdA5WLpxZCKm oaS3tuXWz9ioIb8GcPV+TvWTPamen9Qv/RaW316FfuztUlxtbEJRV+oOpb1NY338xPhh pR1UFvIfEYd0P0TGiAOeD/ssExsn/GGzHsfjWA+xkYouRUpFFM5d5hTR5D4j6r7qNLb0 IibQ== X-Forwarded-Encrypted: i=1; AJvYcCUcCHwwUNbWrVtz5fqA202J6WmyNrDIaBm0N2FKldfM322wIm6XBfrn88RLxPOhOaTR8PtpfY61+oo=@lists.php.net X-Gm-Message-State: AOJu0YzTZgkwzPjSXRZEpFZNlJwFs+e/Shq63ERsDFgGFS+9AEKb00sb aSgfeqzIHCZ/hEuFOugf1BV/qIEggeTi4xfCu5g4/cu8uuJXceNRZ9TAcHbbqhD+v164WqVQzeF 5MJFwAH5vlcIEm3i9hZLyPqtNblw= X-Gm-Gg: ASbGncvyLYrvOOtOnZilYJxmQKx8dEHtugpoX819TOkTByKfACJ7DuYtiq8p8LZbZy6 XooRH8HpDOYHcY+InolwKQW+flpTkBdxtm0EooTn6B+S9znaD0Bi/yDEsWZZDrgj6bIlCqxs1qi XAtxPmPXtPyh6RYMV3ugHprg== X-Google-Smtp-Source: AGHT+IH7PeZiBJQewOqen4mnmRkgXls7qOK9clJKCG33giNlZFmiYWVM6EoNJN5Rc1OWFvoWerbmC3HDKkS2fduum18= X-Received: by 2002:a05:622a:15d6:b0:476:8cef:4f0e with SMTP id d75a77b69052e-48dffdc1269mr27449281cf.29.1746306474591; Sat, 03 May 2025 14:07:54 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <8df04e01-deac-404b-beb7-cd982423db63@bastelstu.be> <33427cd03035ef084245c44290b56a55@bastelstu.be> <0aa1eefc3941bdea0092e935074daa58@bastelstu.be> <76d96ea8a78c6025128c0a4b01c94c0a@bastelstu.be> <07a8a580-4f0c-4b2f-8a67-b91dacfe99bf@bastelstu.be> <809590c3-fd64-4861-8804-1c9eea62a4a8@bastelstu.be> In-Reply-To: Date: Sat, 3 May 2025 23:07:43 +0200 X-Gm-Features: ATxdqUEivPo9wvnl0f32SEJJDpHnFsIQaZNbT0SXMeGiTW7FMW01sjRzGnwPK_4 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: ignace nyamagana butera Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000164f1c063441a9eb" From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000164f1c063441a9eb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ignace, Why can't the Url::resolve method also expose the `$errors` parameter like > the constructor and the parse static method ? As far as I understand it > nothing prevents the API from exposing the errors during URI resolution > which is a proxy method for the constructor call just like the `parse` > named constructor ? Sure, that's also a good catch! It was an omission until now, and I've recently fixed this: so now Uri\WhatWg\Url::resolve() has a 2nd parameter ($softErrors). Regards, M=C3=A1t=C3=A9 --000000000000164f1c063441a9eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ignace,

Why can't the Url::= resolve method also expose the `$errors` parameter like the constructor and= the parse static method ? As far as I understand it nothing prevents the A= PI from exposing the errors during URI resolution which is a proxy method f= or the constructor call just like the `parse` named constructor ?

Sure, that's also a good catch! It w= as an omission until now, and I've recently fixed this: so now Uri\What= Wg\Url::resolve() has a 2nd parameter ($softErrors).

Regards,
M=C3=A1t=C3=A9
--000000000000164f1c063441a9eb--