Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128511 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 BC3DA1A011C for ; Tue, 19 Aug 2025 13:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755609186; bh=gcgKzYYd8Coa9cTuknI1pallVJeSbZWXHqsn+kXsmw8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QHJ5VmVN0kpIFE7tZWukOYVh5/XQo4SlfYhKQsn70oc0gXDMsP2gLw/UPN9hAfLzF fDt+CetbMD3ciwwLLJMSYTC5SHCX5pOtdo71BjuhNtW9uPSWigfFwBJGIyLZgqbRSL TiaL2Ztj/9CFeWqJbUNTZ9QmcWD6URcvlQ9Zg7zKoZ4Uac+1e1r15WCwR9WfGLzMt4 WQju/LAkCKViMyKZYppzgIBQm0jfFMQecMYAuOFXnNkPeNMyJpRWL/1nmea5ASX7j9 8zgBm5/vM1krJaaBi/hlXYq9eBt06DE/7lgxk5Ed6fiRPlqncXeqexj7M4lq9FFERN lZJSaULvzY0WQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C2D71801EF for ; Tue, 19 Aug 2025 13:13:04 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Tue, 19 Aug 2025 13:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1755609275; bh=JkL3BRuQwTkgURJN9cEzynyMIDtmin7NHgWMP7439cA=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=EVlgtVHwpoGKZUf6juYt4Fof8cQbXuiI3oft89UVe+yAgrbEJOk5Nl1dYl9godyak AhFX20uMHg4cmzBb8MUv8Nwo5ZMpKjonti/M+k7HpBiX2360OuENgd7VPd13ZGAAkq SG4AEyOq3Ich3dFd41eoxlQ/6GqhNEBpPnM8iPsKd2haXf4UDoKxQhXSiiEXpxEB+j /GGc9Ubt+Gh+y/10BWdpm3oLRF68ijj0IAVjEfwz9WOQCwtL03+EycoK2X7zIpYaEI Bi9SE1ttJ34YBNEQfFs3EHDqDkXQVTPYn64nJnoO4RuDuHK61bb/HBVw5rRZCCcqLF M1rq4aF77a19g== Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 19 Aug 2025 15:14:35 +0200 To: Vinicius Dias Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Create "split" as an alias to "explode" In-Reply-To: References: Message-ID: <1ac93a41e6cb4909cb5d50ad03b39ed3@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-08-18 16:57, schrieb Vinicius Dias: > 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 I feel like the current RFC text is very biased in favor of adding the alias. I believe it would be prudent to also list possible caveats and arguments against so that voters are able to make an educated decision. Several points have already been raised in the pre-RFC discussion thread, for example the possible confusion with `str_split()`. While it's not strictly necessary to follow the RFC template, it is often a good idea to make sure everything is accounted for. The template specifically contains an RFC impact section that is missing from your RFC: https://wiki.php.net/rfc/template#rfc_impact. The “Backwards Incompatible Changes” section should also mention that `split()` would no longer be available to userland. Quoting from the template: > Please include all breaking changes, no matter how minor they might > appear. All research you did on potential impact should be listed in > this section. and > For **adding new functions**, classes or keywords, here are some > possibilities to measure potential impact: (highlighting mine) Best regards Tim Düsterhus