Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115636 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50124 invoked from network); 6 Aug 2021 07:22:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2021 07:22:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A9FA01804C8 for ; Fri, 6 Aug 2021 00:51:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,URIBL_SBL,URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15716 95.128.32.0/21 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [95.128.36.42]) (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 ; Fri, 6 Aug 2021 00:51:27 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id 3A4DBFE7 for ; Fri, 6 Aug 2021 09:51:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:date:date:message-id:from :from:references:subject:subject:received:received:received; s= dkim20160331; t=1628236283; x=1630050684; bh=4s+EjMqx70+Ssu89Bh8 uU0xnaV5Ibl2M/N6+9pNqr2Y=; b=trPhM5RRgrEQr03z2vNqTjkTDaztsw3Su4A /CUZHwaFCe36NsyZELze9pDkHH1zoCblcywoLqTQqX6a/WFAYQ8JhmBxIT1zfbAt +ofFk2z6RBIRlljR4y7DiLX6yCWqr+1E3tGtAkxfkmY2sGGVQUDmtN4vhohZjvHA rRYCDlkErZTQMveC6KajOuktwNzHaCIpBcLeDcJRqR+TgwYE/p916D5/L9/J9ebM gqjWo988YdVoQmSdRR1xVrgD9a0QsBPIw0bSVB1U2rGmA05ggOzm11BmaTLVb6q/ +F738UhV0KjeYGE1K38ZgDiQiv754mQhkp+m+iIhzmE3AlRkAi1qd0vuyXo48T8T iNd+//+WY5GjDrSXeA9oh47xhzMWoMKha+261+48R8c63oexE0FlIbr8KtosehZR rljPWE9e46StBamXNRrGVdCcgVR0DH8qZDwiSr33PLOsBV5JWqe917ihyWxUm0B3 /23hdYcohz9eKhAr+CgpXXdrUVptIXpA6fQ7QsNUkHGTkuqrK5bwnleSdg8jDwna qpk5uT0YfuhvUpNVZYrt0o/+3CeJGbUqeYDNIil+OQHnLk0WB9wsTni77Cu9mEUs iebRkniKzYbiL/2/buGWTU75NJpu54oCE6ghpf/voJEkBlamqgAynFYkpCUwq28J tl7FEQCQ= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XDmxUBaU3w7V for ; Fri, 6 Aug 2021 09:51:23 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 29730AFC for ; Fri, 6 Aug 2021 09:51:21 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 3E5B887E for ; Fri, 6 Aug 2021 09:51:21 +0200 (CEST) To: internals@lists.php.net References: <7DA18959-3463-4AAE-ABE3-B9330FEE83D2@gmail.com> Message-ID: <0def35e8-f527-3362-2821-2535bc16f8c8@alec.pl> Date: Fri, 6 Aug 2021 09:51:18 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Add parse_query_string as an alternative to parse_str From: alec@alec.pl (Aleksander Machniak) On 06.08.2021 09:45, Mike Schinkel wrote: > I too would appreciate having a function in the PHP library that returns an array and that is named more intuitively than parse_str(). > > However, I would suggest naming it `parse_query()` instead of `parse_query_string()` as `_string()` is redundant and I see shorter function names being preferable when the intent of the function is clear. I agree about the _string suffix removal. However, I know we have parse_url() already, but parse_query() might be too generic. I would suggest adding "http" to the name. And as we already have http_build_query() I would rather see http_parse_query(). The RFC should target 8.2. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com