Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123997 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 90D071A009C for ; Fri, 28 Jun 2024 20:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719605270; bh=8Zkv8rFv5J0WZKxGckp6nJWdchUCODYDoiD4c9vyPAM=; h=From:Date:Subject:To:From; b=meftqWWQvae2Pm/3xYOVONF/tCto4OiUhj8JMBj1uts5bpCfHybUzfY84eoKHySQs ceTMZoM3Yz19CFriWFqyBC0HddOj4aKdwceRnE6Ax6Oe875EW8whBNMOKoEEygP93R gxsfXyDUK6r9bDnE2sYfDw019eLiDHKWhauMK2tB9dfEDhGbarSy8K+PSkFxMiABHQ auEav0w6Z8sKpZ+X56FtT8ED/WGe3stx9+XBeWPNWbVcjoQ7Gm8JrGxvsX+lSHkzUN KP87rViwse8GlOoJr96SseWJp7r3CRs6eYPjYmgtrXREve59Cn+z19VBfPJ9zsYX3E ntxTko6M7cmFw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9E74B1801E3 for ; Fri, 28 Jun 2024 20:07:49 +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,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,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 mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 ; Fri, 28 Jun 2024 20:07:46 +0000 (UTC) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-446427c5923so15570011cf.0 for ; Fri, 28 Jun 2024 13:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719605185; x=1720209985; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8Zkv8rFv5J0WZKxGckp6nJWdchUCODYDoiD4c9vyPAM=; b=DI5ozl2tHu6mgD0iYiFTP8O8OLW2lTGjruxFVk9l9HfxxuaBYSqq6ImcKMMlRni2JN xbUL8gVYF+gEph+i0AIEVBxGPN+EidE1SJM7YTh4q0grkWE0k1qhEOfWrZvPRlpQD9XH v1HYrnxfSJdV38LhjwCRJF1CEu5F/CEYDEIHy4nypyQ3/q3wuNKWl1U/TBd3e5YQ+PO2 SlhS0eIkwpktthivNa2mlw2oUIeYL/OFZpp/Tc/HI0u82Edrh/qUCySTIfZkJ6l6kgj/ EXXflUX/uyG/KQUSSzCJjg2+xbQp/71mc9aGcYwYnRy1j4/gjukuxn8+roD5l86xSe6v 9v4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719605185; x=1720209985; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8Zkv8rFv5J0WZKxGckp6nJWdchUCODYDoiD4c9vyPAM=; b=V2JecL31o+wsgaT8VO+4e/bZO4/Qs77oyql121iBPP7AKj9CEsN4WWPGE1om9DBS5X zAagE7yjcYoCNDrAhWD113G0r3d/iI06UkNSuv8FDrGyhipicY9KUngYlRStbwJQM4+Q r5uKEXa7VWnj8ufaXjlxyiLV9Su2nx5Lp76KEOoE5nzvu8drMIwClxOVlVHxVy9b6hXX OTXpNzeO0m5r4eDQeR5zSedh3+oCNs6pNgP+/wIvT45z/58JnhtCaPhiHiyrMQyB12DF aFZCyBZviUnZXb3ykj8uroBRvdiB+09mrJ8URHqvTrFfX1c3t+YkvJ/AxtQ/YtXBt0lb o5qQ== X-Gm-Message-State: AOJu0YyU9h96YZAlUdN4pteKITVly4Q3HWyBkzZDZP2nL5RWT4btRXU/ nHzMOj+mkVSrcJmPQ/eTIjbBoieB4AaKl0ey1i549AmjmhmBE/cjCrrBGN+RDpwFolbi3kDqeeZ Ln1JDkDsrzrpZ9i7EZBU3kruwI+sR4SN/ X-Google-Smtp-Source: AGHT+IGxbwaa2O8IADByud9Wdnk5svBF95tSsZbg1nX4Id2hNa+1w6d6m3qR2iysstecRaEZCL/9cplPqoUtO7zf0qs= X-Received: by 2002:a05:622a:a411:b0:444:f40b:bb39 with SMTP id d75a77b69052e-446556b33ebmr37142361cf.29.1719605185136; Fri, 28 Jun 2024 13:06:25 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Date: Fri, 28 Jun 2024 22:06:14 +0200 Message-ID: Subject: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000036d808061bf8c8ba" From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --00000000000036d808061bf8c8ba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Everyone, I've been working on a new RFC for a while now, and time has come to present it to a wider audience. Last year, I learnt that PHP doesn't have built-in support for parsing URLs according to any well established standards (RFC 1738 or the WHATWG URL living standard), since the parse_url() function is optimized for performance instead of correctness. In order to improve compatibility with external tools consuming URLs (like browsers), my new RFC would add a WHATWG compliant URL parser functionality to the standard library. The API itself is not final by any means, the RFC only represents how I imagined it first. You can find the RFC at the following link: https://wiki.php.net/rfc/url_parsing_api Regards, M=C3=A1t=C3=A9 --00000000000036d808061bf8c8ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Everyone,

I've been working on a= new RFC for a while now, and time has come to present it to a wider audien= ce.

Last year, I learnt that PHP doesn't have = built-in support for parsing URLs according to any well established=C2=A0st= andards (RFC=C2=A01738 or the WHATWG URL living standard), since the parse_= url() function is optimized for performance instead of correctness.

In order to improve compatibility with external tools con= suming=C2=A0URLs (like browsers), my new RFC would add a WHATWG compliant U= RL parser functionality to the standard library. The API itself is not fina= l by any means, the RFC only represents how I imagined it first.
=
You can find the RFC at the following link:=C2=A0https://wiki.php.net/rfc/url_pars= ing_api

Regards,
M=C3=A1t=C3=A9

--00000000000036d808061bf8c8ba--