Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124023 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 46EEE1AD8EA for ; Sat, 29 Jun 2024 09:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719655140; bh=jPO+3wOtqnlrZj9WHhlea5gsLCzqlLv6xzkXi4dWk4k=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=aJ5r2EkiLoborVOOmJ4x34w3/z7/spRt/gGXkSViCFbNh5hp9Uc1EMdkVRjjahMSX T/oMDSWOgXySDAbVYWj3JhZ4+ly0ak5TScgi/10297dA+76MvPwW6Y4cljy3wt4Fk2 fwUHsOypVchDCetMwM0sU+fdDOqrDqIQfxSDAB5NAynnrkUghGVQVtfpCEyK2RnSIZ u4beBfjBFI75iRI7dx0naJg57nHLoWhuGTRaibwDGSRXnP0qC/gwpR/FL433iRN+Kp RNYimGbiES/XbVYu2dDdIqpXM8v6C6iY5+2SB4rcZKx4YvYre1UKJhBY9kSDftMNu6 j5lXSMUHiRPog== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C4C2B180BC6 for ; Sat, 29 Jun 2024 09:58: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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 29 Jun 2024 09:58:54 +0000 (UTC) Received: from smtpclient.apple (unknown [49.48.245.197]) by mail1.25mail.st (Postfix) with ESMTPSA id 00648604A0; Sat, 29 Jun 2024 09:57:30 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API In-Reply-To: <71a73b87-cc2f-4ee5-a961-7bf2b191fbb6@gmail.com> Cc: internals@lists.php.net Date: Sat, 29 Jun 2024 16:57:17 +0700 Message-ID: <5159E0AB-C8B0-4A54-9654-986C1D9C858F@koalephant.com> References: <71a73b87-cc2f-4ee5-a961-7bf2b191fbb6@gmail.com> To: Niels Dossche X-Mailer: iPhone Mail (21F90) From: php-lists@koalephant.com (Stephen Reay) > On 29 Jun 2024, at 04:48, Niels Dossche wrote: >=20 > - It's a bit of a shame that the PSR interface treats queries as strings. > In Javascript we have the URLSearchParams class that we can use as a key-v= alue storage for query parameters. > This Javascript class also handles escaping them nicely. Agreed this is a weird choice to me, but I'm also not surprised by weird cho= ices via php-fig (log level constants I'm looking at you) We hear all the time how userland is more flexible and can change quicker - a= nd yet here we see a potential built in class having a worse api because it w= ants to be compatible with an existing userland interface with the same bad a= pi.... Cheers Stephen =20=