Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128504 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 lists.php.net (Postfix) with ESMTPS id EAB581A00BC for ; Tue, 19 Aug 2025 06:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755585299; bh=QLh6TJ3NqaRJKmAIU1ykg6Rs3lJqR/KA7CkUbG/anq8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=gl/WDFNQZNAINYiGKA5fhz1Dtd/2yV+lBl1T1KBuDkTY9I1t4bOWLTb7zBZDxs0cJ DRjm8Xq1vXaFPDOz3Do/vx3caCZd6th3yJ4ibNYZJV1/wkPACPnMuvw9onTvOvfw3q +XHhItbuo8DESQwoU7+JPDPRJKcnzkkIeQaeaJZQiM0rLHUkCvfL94QHhrNxsJRZKj HFEABBHFGLRUicMTViuKDIf9OUx62tZ5+1aTOviHc9H9IKWckBabNwggY4ziJJhoEq 9nbv3sMLbw8lAeWc2S/9tTz5TlD5UX6dxwN6rhR1Yp4e6m4yWBhMhMjHcgzwlMTki7 BPPF3YE3/p2+A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D99E618006C for ; Tue, 19 Aug 2025 06:34:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,DMARC_MISSING, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from apynys.serveriai.lt (apynys.serveriai.lt [79.98.29.9]) (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 ; Tue, 19 Aug 2025 06:34:57 +0000 (UTC) Received: from [83.179.55.42] (helo=[192.168.1.156]) by apynys.serveriai.lt with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1uoFxL-000000006ra-0xFc; Tue, 19 Aug 2025 09:36:29 +0300 Message-ID: <691d5104-39cf-40e9-ab6c-01fc43af702d@daikaras.lt> Date: Tue, 19 Aug 2025 09:37:08 +0300 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: [PHP-DEV] [RFC] Create "split" as an alias to "explode" To: Vinicius Dias , PHP internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Sender: webmaster@daikaras.lt From: webmaster@daikaras.lt (Daikaras) On 8/18/2025 5:57 PM, Vinicius Dias wrote: > Hello, folks. As discussed in previous messages [1], I am proposing > the creation of an alias function `split` to the `explode` function. > > Here is the RFC for discussion: > https://wiki.php.net/rfc/create-split-alias-to-explode > > [1] https://news-web.php.net/php.internals/128477 -1. My 2c is that aliases should be deprecated and eventually removed, not more added. Modern PHP projects tend to have coding standards that prohibit the use of aliases. See `no_alias_functions` PHP CS Fixer rule for example. The existence of aliases only creates unnecessary noise across the ecosystem, eg CI failing when someone does end up using the alias. If you think that a function should be named this or that, you can always create aliases in userland code.