Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126487 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 148401A00BC for ; Mon, 24 Feb 2025 09:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1740389651; bh=qAOZgS/YRN8Vs1M8fTTbnJxDLYEWF4Z8rMjOuh1Wml4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bgUqzlODFVbZyZNUtz1w8LXAcSlH7/oCQWTlSS0ef0Oi5da8Z+jtTz8WBTQaDOwNX oBrJLWMpQlj2yg4zMHxzkUOoAFvlHLVArOmQoJVmVlfwOgVao1XKi9TyVAgUyCL8kQ Qk+jmeAxpLlCoGsv1mg3gYv4/7IlnSO4jYrnK/gMdIHTIbbV+K7gMFK8bo3Ftp2Ury 0UbxYDT+QSwX9vYP/mey3FlMIae0uraEi+GgKzOsp8TU7zeNRZ9QZhMtlHEe93d9iI xTFW23tYWcS3UCW6M9gKR+Fu+hz8hNnqzIsVBh1Cbc7S4tKvI8/pw+UwuPWcpuW/q0 nrguFy0Gb5Sgw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 393461807B8 for ; Mon, 24 Feb 2025 09:34:11 +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=-2.1 required=5.0 tests=BAYES_00,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 ; Mon, 24 Feb 2025 09:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1740389808; bh=0F9GTt678cogjZNrbkSVezrxATBp5nLb35ZOwq+PR+U=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=PhDiBhGGb0Nm5Ov7QzwCLpnPHwUKRjOLJXHZAIoN1mEsTgjiYK6eRTyRrLdmSGYIK cBpex8265ozUE1BQ7/5TruRAgXcZayYB0entOCTO4X/lssJAGa7c17V1CSDTaZKDRp eddSwYLeiFX3+YdjQPFNKLOp4ts11SX58JVlmLwvsOGFzEel1UMqFSjB3ng+Dm3FzY I+YGhSbuMietHC1FBT6dR0kzKV1FX/Vtfpcz6CyDAF/TmBRbLDpT7oiCliDCDCsKrz Hlupj5Djuw9O/HZVSbaZOKK3fk25kjakmHLM9Z75WosG5TylEcolrUeI8tMuikiFLW 9wjo7j81wSGyw== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 24 Feb 2025 10:36:48 +0100 To: "Paul M. Jones" Cc: PHP Internals List Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API In-Reply-To: <811B65CE-1DF0-4A47-937C-4FCB6E945B92@pmjones.io> References: <811B65CE-1DF0-4A47-937C-4FCB6E945B92@pmjones.io> Message-ID: 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 Am 2025-02-23 18:57, schrieb Paul M. Jones: > In earlier discussions on the [Server-Side Request and Response > objects](https://externals.io/message/108436) RFC and the [after-action > sumamry](https://externals.io/message/109563), one of the common > non-technical objections was that it would better be handled in > userland. I did not read through the entire discussion, but had a look at the “after-action summary” thread and specifically Côme’s response, which you apparently agreed with: > My take on that is more that functionality in core needs to be > «perfect», or at least near unanimous. Or perhaps phrased differently, like I did just a few days ago in: https://externals.io/message/126350#126355 > The type of functionality that is nowadays added to PHP’s standard > library is “building block” functionality: Functions that a userland > developer would commonly need in their custom library or application. *Correctly* processing URIs is a common need for developers and it’s complicated to do right, thus it qualifies as a “building block”. PHP also already has this functionality in `parse_url()`, but it's severely broken. To me it clearly makes sense to gradually provide better-designed and safer replacement functionality for broken parts of the standard library. This worked for the randomness functionality in PHP 8.2, for DOM in PHP 8.4 and hopefully for URIs in PHP 8.5. Best regards Tim Düsterhus