Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120328 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11711 invoked from network); 17 May 2023 15:53:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 May 2023 15:53:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 00AEB180506 for ; Wed, 17 May 2023 08:53:51 -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=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 17 May 2023 08:53:51 -0700 (PDT) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1aaea43def7so7978105ad.2 for ; Wed, 17 May 2023 08:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=team.bumble.com; s=google; t=1684338830; x=1686930830; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5P7pZsqwg3BEWoS+SNJVo2p287Ka2KeHzyZrAt4QNsk=; b=UY0MO1KN7eYN81EDPa4tAh1dojxpfwf+u4BOs2OlnCDF5QAKnq1lVa+m1RH7bUCgfe AhinfRxizbMVES3DQctGEC8qKUNf+qo7eM+Lpf21vlAiOJoSuJFt1QPYfeiaxkFW2SVz azYsxqX6/4uQgkgLw+eHTWniTI5y8hfP1BKV8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684338830; x=1686930830; h=content-transfer-encoding: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=5P7pZsqwg3BEWoS+SNJVo2p287Ka2KeHzyZrAt4QNsk=; b=LmwmKI5dr/ZbtpqeardZLCv7ZAV75FvWXhYZzwWZDwB9q3t1ovmlKs9n37WF/5IpQN QuscZEluKRnN7dZGNz+uG59tiH2+VtyxrELvQ5kVvrutbJmtB8VCuk1GKntkkMwFDJwX /M5Qmh0Ct0HRj/a0wlgyBHtwICOjvdOhoXNiwokleectvDYhn6y072vGI+QbW7+PBUC1 03NbvnBJzz6Ky/KX6zi8ObsOOONBvfML3HZA+uJH2ImmV10CfI/+80tfNiOOOaYU7vFp I/owHTSMUD1P1TZeny4SC7WQsn6N5jRY8PwZ+Q6Wn1KBeKyVPySoUJtAXyHhk5dXGRUE t2Rw== X-Gm-Message-State: AC+VfDzn+Tres1XgGE2uH9siceDxA4x00DfFYmlKonN5prrI1WiCz5KQ DT4TW/JwOBNr3b7dLkEGg1ZWXnWtDeMbjfhLgdsjpmKS6eGQTl0o X-Google-Smtp-Source: ACHHUZ5D94JccbohjVtAXqE5/zXJyuyDVY82XjJjvTDY2QMPlMUrH8V0wrAo8l8vmcBFc2lQorPVLJ+rZ0WfWNs/Iik= X-Received: by 2002:a17:903:1ce:b0:1ac:a02f:c9a4 with SMTP id e14-20020a17090301ce00b001aca02fc9a4mr33162457plh.4.1684338830074; Wed, 17 May 2023 08:53:50 -0700 (PDT) MIME-Version: 1.0 References: <4ECF6970-2A01-4C47-9B41-87D534F54CB8@shyim.de> <35a55420-5b12-c811-1ff4-c41d29f3a0c6@bastelstu.be> In-Reply-To: <35a55420-5b12-c811-1ff4-c41d29f3a0c6@bastelstu.be> Reply-To: Mikhail Galanin Date: Wed, 17 May 2023 16:53:14 +0100 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: php@shyim.de, internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] path_join function From: internals@lists.php.net ("Mikhail Galanin via internals") Hi, Thank you for the proposal - it echoes somewhere inside me. Just a little side-view of the problem... Personally, I will be a fan of Kotlin-style Path API E.g., the path is an object so we can get path items, and get sub-path/resolve child nodes. It appeared to be quite useful in practice. Examples: - https://stonesoupprogramming.com/2017/11/27/kotlin-path-interface/ - https://www.baeldung.com/kotlin/kotlin-path-api On Wed, May 17, 2023 at 4:36=E2=80=AFPM Tim D=C3=BCsterhus wrote: > > Hi > > On 5/17/23 16:54, php@shyim.de wrote: > > When you concat just the paths you have to think about: > > - normalize string part to strip ending slash > > Why is it necessary to strip the ending slash? > > > - for windows compatibility you have to use DIRECTORY_SEPERATOR > > > > I don't use Windows, but to the best of my knowledge, using the '/' is > equivalent to the backslash. Is there a case where the difference matters= ? > > > I am really looking for your feedback, right now I have no =E2=80=9Ckar= ma points=E2=80=9D to create a RFC in the wiki :) > > > > If you want to proceed with an actual RFC, the folks handing out the RFC > karma would need your Wiki name. > > Best regards > Tim D=C3=BCsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >