Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124017 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 A2CBB1A009C for ; Sat, 29 Jun 2024 09:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719653601; bh=9QZ6yfcWBN772nK7/SqrJovb6N9l0wSCrsXRf9MGpB8=; h=From:Subject:Date:Cc:To:From; b=jh6hZf1IvB6hqfxz1oMNMCmmRny1SbMhmMuuc9d4IdttX+VDj/oWfXTDXPITfnblj Qkn7tRgfuOv1wp2Akgg6o7q7ObFd8+ssQDTHnzA/K6a2/4SwpJpuUCiOHHAKDP/WtW 6fg8UDYgvq4uX/2RnR6q3+mxg+FrD5D3Ts7gZZirMsl2upTrIY+5qdRIPJhbx2oz1d aQWG1zgOVNujyLkyKaMgdkEFwE7jo3hLZKm5jD2XbgzJzYTzOq8msb7PgOc0ctQefV vdoaDr3xADCUElJaTj4uwxsE16Z6RzbUa8j4S2Mev1NBfTrp8/MlYcpgfMV2k4Zsu7 7PNRv3hfKuilQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1BE2318005D for ; Sat, 29 Jun 2024 09:33:20 +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:33:19 +0000 (UTC) Received: from smtpclient.apple (unknown [49.48.245.197]) by mail1.25mail.st (Postfix) with ESMTPSA id 7222560527; Sat, 29 Jun 2024 09:31:54 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 Message-ID: <50DEC8FF-FBE1-4B39-AACD-076683499897@koalephant.com> Date: Sat, 29 Jun 2024 16:31:41 +0700 Cc: internals@lists.php.net To: Bilge X-Mailer: iPhone Mail (21F90) From: php-lists@koalephant.com (Stephen Reay) > On 29 Jun 2024, at 06:03, Bilge wrote: >=20 > =EF=BB=BFOn 28/06/2024 22:35, Niels Dossche wrote: >> - Why did you choose UrlParser to be a "static" class? >=20 > Because "static class" is the hip new cool ;) >=20 > Bilge I would argue that for 90%+ of cases, static *userland* classes are used bec= ause of (a) autoloading and (b) the ability to use private/protected methods= . Neither of those apply to a php extension. I agree with the others, the static parser class is weird. Either put the st= atic methods on the url class, or make the parser an instance with options. Cheers Stephen