Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121966 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89788 invoked from network); 8 Dec 2023 17:14:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Dec 2023 17:14:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E45A7180052 for ; Fri, 8 Dec 2023 09:14:21 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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, 8 Dec 2023 09:14:21 -0800 (PST) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-289d988a947so1780868a91.0 for ; Fri, 08 Dec 2023 09:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702055646; x=1702660446; 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=z3qu0/AHtmCCazVYHC85OZ4smRuugsZlrnrnlW3ctcU=; b=PrZJ3rcU5iIYzgoGNuYNQiZgmrBhSslzZDurFvriAbb2YtEZxmCXvLhlRbipBLGn9N hqJibnRI0oj0BEn2sb0CB46DNoA2ELmKefMqmYmg6VJu/lwEyTMD6eGO0e3fPOEIYyDJ 5I4tGzQQcgEnyUFGCClohKvTCXKtGzJZ6+vMiZe3bisWM+pJLp2piVGteVJE5bPFQBJ7 ZxSM0OTVG1/U/I7o9F2nVd5lRzJenBlWwyE4nBA1fYWmmNTBccUUHpSIa4epv41owLMk O6TvX5v/3FQJc6yi6Ln8rXp3F79vDY5xKrf3nkpHsReWy5OXcLLzkGf0dhx83mOjS3kn gyWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702055646; x=1702660446; 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=z3qu0/AHtmCCazVYHC85OZ4smRuugsZlrnrnlW3ctcU=; b=P5DLfnjznq9YEqryPBwXACyVeI6/j/yjAS0JROHWOtRU4sD8YvMUn7V8+Yk4gbftdJ dL0Q3QAEsWm6s+PAzObZWYv4WtHHE2GWY5LLcVGWgdd20p3FwUNqtFx5gd/Y8CzAKZNu lSMGWFM/7FKRVHeMMifYDci3/lqbZgHpMffz9EhgrA/F37G7gZp0Tq/wtBsbH7S6pZgc Lrve4NNCf89xzQ3uMWRWqHn/4cncUdh+XbiGTukdTfuxJjvqgRKTz7Qjsz7D4PDPqcL9 25HdiBg4oqkjuKMr/j8NS7OFj7nCUtx0wAp3bELvG5YEBStyfRkXr7ZKvi/latMbR12i XypQ== X-Gm-Message-State: AOJu0Yzw7O3bU/AzolGSVsjEyLjmtDewI9Pp+XA7JTxJkxjYetkqJnSS Dgy9I6PBA3z6haXmJS7SyDw9kuskbIQ9m1+00VE= X-Google-Smtp-Source: AGHT+IEzFP2/ya4S+1W8ByAMn5iVcwa7Dc07CunfruQRkcTvGsH+zjbinDJk+vGqs36+xUD5qQviVUt9SF+ibUmtDEk= X-Received: by 2002:a17:90b:1646:b0:286:7c64:8e60 with SMTP id il6-20020a17090b164600b002867c648e60mr357606pjb.52.1702055646366; Fri, 08 Dec 2023 09:14:06 -0800 (PST) MIME-Version: 1.0 References: <8f4e3274-6489-4378-82db-fb4829770196@gmail.com> In-Reply-To: Date: Sat, 9 Dec 2023 00:13:55 +0700 Message-ID: To: Max Semenik Cc: Niels Dossche , PHP internals Content-Type: multipart/alternative; boundary="00000000000030940b060c02b66a" Subject: Re: [PHP-DEV] Filesystem path APIs From: pierre.php@gmail.com (Pierre Joye) --00000000000030940b060c02b66a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 8, 2023, 3:44 PM Max Semenik wrote: > On Wed, Dec 6, 2023 at 10:20=E2=80=AFPM Niels Dossche > wrote: > > > Hi internals > > > > I'd like to start a pre-RFC discussion about filesystem path APIs in PH= P. > > The reason I bring this up is because of this recent feature request: > > https://github.com/php/php-src/issues/11258 > > > > The feature request is about the following: > > We already have some functions to work with paths in PHP, e.g. basename= , > > dirname, realpath. > > We do not have some common path APIs that you can find in other languag= es > > like: path_join to join paths and path_normalize to normalize paths. > > > > We have a lot of commonly used functionality that's successfully fulfille= d > by Composer packages - does this really have to be core functionality? > if any of them could be a easy win, relative path resolver without checking its existence would be one. It is available internally but the existence check option is not exposed. > --00000000000030940b060c02b66a--