Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117293 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8862 invoked from network); 7 Mar 2022 11:33:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Mar 2022 11:33:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 889E91804F8 for ; Mon, 7 Mar 2022 04:56:11 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8495 185.67.36.0/23 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 7 Mar 2022 04:56:10 -0800 (PST) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8B1E7240027 for ; Mon, 7 Mar 2022 13:56:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1646657769; bh=FEV7RUA4eJZylL0ppzV8l4H1Jd9FZRN4Xx6B7a9Eq/E=; h=Date:From:To:Subject:From; b=E97SHbz7GSxShHEsAzp4dHTtdWkJ5UKtZOMAxolN2QYadzIAxsGIadWkpu98uHluY IYL7ohN9Tn2peBSv6QKW2GjthstcQSRDplNyXEhfyu8ZoTcPh7XqdLVvTlwMyTBWxi blIMb+uScdk50io3DJWGwLUoNK1Rso/ybtFaB8i7WCsOYUgstzFR/pvO220yjTzNGv 592OX7n/tn+njhW6h6tTpAyCgI7sndovgVfW8haqHTtZsarVKYEL82tA7DAIbjk6Vz VF1oBTZUNEa7ydpYB/7JyMHgEMixWJdzwk9H1QoxDltxEGs+9tf3JJr5XgjUENR9O7 NE+kh4laovo6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KBz3Y0tWfz6tnk for ; Mon, 7 Mar 2022 13:56:09 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 07 Mar 2022 12:56:09 +0000 To: internals@lists.php.net Message-ID: <392d73ddcf41f4573855ece4b269d872@posteo.de> Subject: Question: What are requirements for having (new/old) functions within PHP =?UTF-8?Q?core=3F=20=3A=29?= From: thomas.pakkanen@posteo.de (=?UTF-8?Q?Thomas_Kr=C3=BCger?=) Dear internal developers of PHP, I got a question after viewing the PHP sources for the core functions (ext folder) about the internal PHP functions written in C. On the one hand I have these core functions like soundex() or levenshtein() which seems to be part of PHP core and on the other hand I have the PECL packages for math, statistics and so on, which are not part of the PHP core. My question: What is the requirements for having something within the core of PHP and something else outside in PECL? Would it not an idea to exclude everything outside of PHP, maybe for performance or security reasons (suhosin/snuffleupagus) and only include, what is needed for the current project? Or if it has nothing to do with performance, why not including everything from PECL into PHP core, so PHP could offer out-of-the-box more and more features for developers? Best regards, stay healthy and thanks for your efforts and work on PHP! :) Thomas PHP / C programmer