Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127144 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 4D9291A00BC for ; Thu, 17 Apr 2025 21:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1744924621; bh=mc5F02y5J7Fa6z2kttcXqGPPfSytcPOgJ+pGWxqaZjs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CxaucxII44CXveHAsPjFqSxrIa7btjsjp5P0LBmJlt3HFhkk1YH2pfvsxOlx47j+c TNanLi8/9JcKvMO6Fn37msUSd4xcwn0Y3rYzy/hSqE+3Cl7lqGI+xuGS6PyoKFIFPc lUld2f4dQ+qJT+UP7fCxD4Upehff/VnO27OU2RiL8xd7dPRvQtICMl4az1Wb7pbELx mhCOe+7vEbZaRu6N3SRFPA+kUjBHSEP8MPeSX18PPsQce2WmwagRIGVwRjmb2rPLfp 96tMQwPYS8CVSV4Cq7nAVgfZonpv+cB4JXYQ8flOdlTkMvfwA0vP+sTAIc0Bun1YOw B0gWgkxafJhoQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 26BC418007D for ; Thu, 17 Apr 2025 21:17:01 +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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Thu, 17 Apr 2025 21:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1744924761; bh=X4Z2yvpWewYbqpSeY+HcOvZf6hEbnjPIpvWC5H0mWn8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=ZxkMNr9NKFNLnIUoAB3bP8K4Gog7icE0Km6UiMh5Fk2nXalWhL5P5PDWx8oTlIoJb bc7OXJxTbntY69SksrLeYlrTOFHFNVzV8JSIWdo9IMDaKAOuPGtiZRWAfu2h7aUpnz j4vzVhQODfSQRdqWOGGS87vvXwucqrzen17pksjPZRJ2RDE6+tz00gcDFr12B7v0N6 OHi26WCjDgnGeNiCacSg/ZkbVHTAs0jf4/DIatdlVzSGNmHERHCZi2Kc2X3LSRAUTc fXaR6slbzbpCH1/QNTArY7JNoHrjJslMCU7e1FfSETU4eXb5cSiGsCcO3sFSHoE1t2 PSUuOaGSFZtrw== Message-ID: <32a4c9a6-d0ce-46cf-aadd-a0b1accce6fd@bastelstu.be> Date: Thu, 17 Apr 2025 23:19:20 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: "Paul M. Jones" Cc: Internals , =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= References: <8df04e01-deac-404b-beb7-cd982423db63@bastelstu.be> <33427cd03035ef084245c44290b56a55@bastelstu.be> <0aa1eefc3941bdea0092e935074daa58@bastelstu.be> <681877E8-B9E1-4074-9D8F-18C634058310@pmjones.io> Content-Language: en-US In-Reply-To: <681877E8-B9E1-4074-9D8F-18C634058310@pmjones.io> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 4/17/25 23:14, Paul M. Jones wrote: >> On 4/17/25 22:47, Paul M. Jones wrote: >>> As such, the _InvalidUriException_ would better extend from _LogicException_. >> >> No. There is a de facto policy of “not using SPL exceptions in new code”. The replacement for LogicException is the Error hierarchy. > > Ah so -- I was not aware. I retract the comment, and thanks for the correction. Yes, we absolutely should make this an official policy in the new-ish policies repository (https://github.com/php/policies) to give folks an official resource to reference and hopefully making it easier for RFC authors to make the “correct choice” without someone needing to remember the existing gentleman’s agreement. I've put writing such a policy RFC onto my TODO list to handle when I have the time. Best regards Tim Düsterhus