Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121957 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56332 invoked from network); 8 Dec 2023 08:44:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Dec 2023 08:44:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B0319180052 for ; Fri, 8 Dec 2023 00:45:09 -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,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.online-presence.ca (online-presence.ca [216.128.176.244]) (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 00:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=online-presence.ca; s=default; t=1702025094; bh=2JZ7Iyhf326gzsAW0KTv+QgqO1It4rPNJahcAX0fboQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=lfA9jdQ84NasEIk+ZXB3Co8Bzrw5vAupg6kyzBh0M7Hm6VG/r4UwD3IvD0fTsGndU yF82A/qON9vyDJ5QXcn8PBgbDVYZfXhZRKwkYQFp22rrg78Yhw+qVSSbpkE8vL2+Nw Sl5JiLZA9FrOmq3BnDsh0nJu1eoWwrkKA5dC6M9nDD89+vISeiEuWCawDJacSWRvvz WHLD9IrMQK2MuaxfQWRqp/AyBHxFvsEU/ABin8E4iXe2h0AYxwVxf6ZoVDggY1u+Q/ ByjkPkl5PAzHN/1VyhlQ11Ie8yNiAolr4oZmfI9qc/4NB0tnG0tdQhuaynODCliCQL hDuVMdweU+9Lw== Received: from [10.0.0.211] (S01064075c3d865eb.ed.shawcable.net [70.74.109.64]) (Authenticated sender: lanre@online-presence.ca) by mail.online-presence.ca (Postfix) with ESMTPSA id 372761052AA for ; Fri, 8 Dec 2023 08:44:54 +0000 (UTC) Message-ID: Date: Fri, 8 Dec 2023 01:44:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: internals@lists.php.net References: <8f4e3274-6489-4378-82db-fb4829770196@gmail.com> Content-Language: en-US Organization: Online Presence In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Filesystem path APIs From: lanre@online-presence.ca (Lanre Waju) So your suggestion for simple file stuff is to download composer? On 2023-12-08 1:43 a.m., Max Semenik wrote: > On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche > wrote: > >> Hi internals >> >> I'd like to start a pre-RFC discussion about filesystem path APIs in PHP. >> 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 languages >> like: path_join to join paths and path_normalize to normalize paths. >> > We have a lot of commonly used functionality that's successfully fulfilled > by Composer packages - does this really have to be core functionality? I > understand the argument about batteries included, but across mainstream > languages you can always find examples of something that sounds like it > should really be there, but it isn't. > >