Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120334 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44107 invoked from network); 17 May 2023 22:53:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 May 2023 22:53:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5B5CA180503 for ; Wed, 17 May 2023 15:53: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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Wed, 17 May 2023 15:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1684364006; bh=ZY0v5Z6PERZtuu8R8Alayru03MT5YdtIarYzM/AJXKI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=N03+x7EVC2uMGWaH03Hjtl8xP8A8yYJir2vmgauwxNZy62OdRW7OWrHiNms8Ssh+N vz42RCfTZ+BcFf+/iCzsb05sf5Z8wZ98NKTwbll99cGQbvv+kfJXqWPcLOtICkBzVj zJODUN2drzK8mPtIwAkZ3phmqTSzWxH1JMvNuvKXZuhyAgvTGi8J3dVxaS0B4nVcej fuXFNPUPH7HLQuJAl7/s5dH1OLBuq/UoMbnxV9cGuel88quAwt/BwksGwKu5EO+ZLr +UxcXPAUWAhmpq09ASOOIq68OG5MAAZPKzHXQef+XDTbbM/P9GyRLd1GUnvKNQG5Hi ZmbosvCEv7qpA== Message-ID: <1c09e0e8-a219-cf72-4e66-717dcf892db2@bastelstu.be> Date: Thu, 18 May 2023 00:53:25 +0200 MIME-Version: 1.0 Content-Language: en-US To: php@shyim.de Cc: internals@lists.php.net References: <4ECF6970-2A01-4C47-9B41-87D534F54CB8@shyim.de> <35a55420-5b12-c811-1ff4-c41d29f3a0c6@bastelstu.be> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] path_join function From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi Please do not "top-post". Instead reply inline and cut the quoted parts to a minimum. On 5/17/23 23:49, php@shyim.de wrote: > No stripping would be needed at the end :) I don't follow then. > Yes I would like to work on an proper RFC and make thoughts on the already given feedback here :) > Okay, let me add some additional questions for you to already think about: - Should the function perform file system operations? Why? Why not? - What is with stuff like Windows network shares that, to my understanding, have multiple directory separators next to each other? - Is the name of the function the best? I'd probably drop the underscore, because we already have 'pathinfo'. I'd also like to use this opportunity to add a "+1" with regard to "make this a proper class for manipulating paths, similarly to Python's pathlib or so". I would find that much more useful than the proposed function. Best regards Tim Düsterhus