Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123998 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 98C861A009C for ; Fri, 28 Jun 2024 20:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719606188; bh=O4Z6XKXBxDDUUr+iqaqtZDQFxZyLme7lANHYhNQQyXE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JaGcLIIH9FDFvVMLm8ied6EGrWWBJerZP/ipjx4f9gh7Z3frqtVejcZ+VMUttdDtH OeyumFYsnhfOP3Si4sjWkmWy2TBavXNxwyWDtZ1SB/vJbPZEbaN5w8zRQamKhwAqVZ wnVPthl2ELotPdOLt7aQ/yJF5NaYmG5Jfv5XqzKBhyZDKQETHT9yc+yDpW45RaxpWC bjhskAESGkyOk7B4R7gxN+89v39JPZ77P7BIrSbRnwbN2SYws3v9uCJUCm786OGrsN qZLU6ABQ4SoH8+t+AI7h6lybxnIVkQ114E74mbsGLM82Y3X/a90myqfcO8/Xo1c5iC iCGA5dOVijhLA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1B89C18075A for ; Fri, 28 Jun 2024 20:23:07 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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:23:06 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-706680d3a25so789022b3a.0 for ; Fri, 28 Jun 2024 13:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719606107; x=1720210907; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O4Z6XKXBxDDUUr+iqaqtZDQFxZyLme7lANHYhNQQyXE=; b=EVNq/Vd8CtxLzxaWNRKYXXG1WcGTZFvnXUwhjb4QEZoA8qVRFD5f6mgYfTATO7Bdao iLSVfolUIfW2CdKGdjV9eFnQozkO6xMpYX7Yq+3v5FB0Uu77VOQ4vc+0eDEhrz5Kv8Hd 6c67/SyP1YPFXLZNNM8vnimmORDdk1bQsl+UFmUEV1RATEBE/lbIu/Dz1SfKR6AUXNhe qbODUqPIzZ7+916V7np6SjRP2DDVi2M6YmcfeF9yOATSit6PXANeJlnSP7HmSlJ7CS/m q0chw8OCyLDIfU+GrJ0Z3KzdEarQ4z3yX378clXOphb9vPq8WGjqP+7z7vPRvqqtjXB/ o3Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719606107; x=1720210907; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O4Z6XKXBxDDUUr+iqaqtZDQFxZyLme7lANHYhNQQyXE=; b=n8PINite6hkfM/4eEu/fL1RGA2ToCQrWuetEhzbze1iYE2Eiaf7r4J264vnMpBWSPG H3O364PtLOMfrK4gMnyEpOlp/VYu8bo7d9esKrQ0b/kcYXyjXoPRwbRLNmzmaAHdXvBF EKTHFMF4mDd+YWr3JUuoe2yzGatBdWhUCWjidrOdqpettwTz17JwTCg3uJb2nDEgJcKE ICJ8NuBEd3efbEi1gHpjcvFEdQZUWuhR5WmUDUGxG2FPiBTuaWCMYKieKz+qgvdDFfmn 2Fuxqp9Ve1zAEA4MEwsxwDZ3AAq5xKL0pv5XjGiUC9yBArIyGOI746Z95Ml3v7ZLhNKH NQkQ== X-Gm-Message-State: AOJu0Yw+ZdChr2xzpZGDyb7FF/QlCB9cK9EOSf19ylLQEz+GuRCv49O4 uIh1tlYPOr/4WkjtALRmCb4kksTJqlotV4SFt8EugWizJwkIBnkqhdqwyMfUPp/jTmM/wGuWOTz mArBEuvi44fxnlb+w5a8RLNlDs8g= X-Google-Smtp-Source: AGHT+IHsUhz58lmYbShUocZeLCOEI0RhsNndgmo6N2vqHUesFbO7jovJo7ls7OJ0U0y40VZnhHMJcY9brGIOXExgyDw= X-Received: by 2002:a05:6a00:18a5:b0:706:58a8:f686 with SMTP id d2e1a72fcca58-7067105b523mr23389144b3a.32.1719606106589; Fri, 28 Jun 2024 13:21:46 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 28 Jun 2024 22:21:33 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000002314ee061bf8ff1b" From: ocramius@gmail.com (Marco Pivetta) --0000000000002314ee061bf8ff1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey M=C3=A1t=C3=A9, On Fri, 28 Jun 2024, 22:06 M=C3=A1t=C3=A9 Kocsis, = wrote: > 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 (lik= e > browsers), my new RFC would add a WHATWG compliant URL parser functionali= ty > to the standard library. The API itself is not final by any means, the RF= C > 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 > So far, amazing ! =F0=9F=91=8F --0000000000002314ee061bf8ff1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey M=C3=A1t=C3=A9,

On Fri, 28 Jun 2024, 22:06 M=C3=A1t= =C3=A9 Kocsis, <kocsismate90@g= mail.com> wrote:
Hi Everyone,

I've been working on a new RFC fo= r 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 su= pport for parsing URLs according to any well established=C2=A0standards (RF= C=C2=A01738 or the WHATWG URL living standard), since the parse_url() funct= ion is optimized for performance instead of correctness.

In order to improve compatibility with external tools consuming=C2= =A0URLs (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:=C2=A0https= ://wiki.php.net/rfc/url_parsing_api

Regards,
M=C3=A1t=C3=A9

So far, amazing ! =F0=9F=91=8F
--0000000000002314ee061bf8ff1b--