Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121776 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32748 invoked from network); 23 Nov 2023 10:22:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Nov 2023 10:22:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C104180048 for ; Thu, 23 Nov 2023 02:22:07 -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=-3.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_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (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 ; Thu, 23 Nov 2023 02:22:06 -0800 (PST) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-db3a09e96daso654804276.3 for ; Thu, 23 Nov 2023 02:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700734921; x=1701339721; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=+D/PJzutauGHdY/slQDxI1fbMp6Inpyl4uOJsVGL6us=; b=IOlI4aq6SQVtyOGbFZpsO1YPMcvPwB7+59mNg4w9keTYNrPmMbCCuWQm3G+gGB0tog jNcwOis78gJuy1yQt1cRd59rilwHNTUEWum6Ocwy2bvWiNqqm5c7fE3O38toBp++IWZt 4hOGi1v/+8CXG9FIZit9hydl754NOc7s5XTXJfgP/jZT9UbHmGXhO3eGM7d4SNnCAu0S tknArhDuDQAfHeeXRH6opwW+nUx0UOPAHe4sDS7Ly1j1WGdeV+ltt1MNMmFSgq0cNKMi Lpyf11TaQy+N1cLtwyNi9cwxM5dAiTer4SFq5S4k2mCyORZl3kfg3G8d0hhD08kzaRNh D/dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700734921; x=1701339721; h=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=+D/PJzutauGHdY/slQDxI1fbMp6Inpyl4uOJsVGL6us=; b=vTWdvC6aZByTgfrcl8ZYkV3CLMnYr2LhUqThlIDFsljNxKFHJj90hThCkel1wGt++w jiR7kQmWb36y7TMpvc0bT/ZR8ZJHkgn6cgOS2GBe4pNqGWE/n9SbjN2jHSrMN06JCNd2 y2+YiLzVENt3gpLAYZMlYr0NuFDQFc+FX7NNaOUSi+faQiJHaZHVJIZjw+v4g3iwLpgA Z6cMTJvmis/9pd2TQKzmMxDxnUN50d2isOS7dgGXSBjEOH4zawYBzaXNHYMj6N3XgYwj +U3/afHEcljiGN6xnPHU+akFTGXPAL9NN91AWVNaX2g4S9BLCM59pCovImANkPTx2S3y /d1A== X-Gm-Message-State: AOJu0Yy6pRqyELHsqYgim5LegVcMwqoq+hJUQ/asRPv1Jf4Lhvsy95TM PlHs1mgrcuB6oGmXwDiOg7woydQ12fag6IypSCebn1RD X-Google-Smtp-Source: AGHT+IGdWLqCEoEsL2M4j0STe7AUMmmnUCFHQ2uxj2ma5SZ2pStMG4g6D/0F3k/ePQi/AniKUOJ8oP2N4fxfnlI6LRM= X-Received: by 2002:a25:546:0:b0:da0:5b63:d062 with SMTP id 67-20020a250546000000b00da05b63d062mr4701648ybf.35.1700734921427; Thu, 23 Nov 2023 02:22:01 -0800 (PST) MIME-Version: 1.0 References: <79d675e3-95b4-40bb-baf4-3e1c998f5390@online-presence.ca> <34979AED-893F-45DD-B641-A9F4F39B2928@newclarity.net> <2D505086-6AD9-4596-A515-85B50F5D12C5@koalephant.com> In-Reply-To: <2D505086-6AD9-4596-A515-85B50F5D12C5@koalephant.com> Date: Thu, 23 Nov 2023 10:21:49 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000d95055060acf34c5" Subject: Re: [PHP-DEV] RFC Proposal - static modifier for classes From: rowan.collins@gmail.com (Rowan Tommins) --000000000000d95055060acf34c5 Content-Type: text/plain; charset="UTF-8" On Thu, 23 Nov 2023 at 06:00, Stephen Reay wrote: > I'm disappointed to see yet again that there's this implied notion that > working with PHP in 2023 means "well surely you must be using composer", > which leads to "but composer..." somehow being an accepted argument when > it comes to missing/incomplete builtin functionality. > While I appreciate your point in the general case, in this particular thread, the mentions of Composer are really just examples, or can be reworded that way: Functions lack autoloading, but in practice this isn't a big problem because you can just require_once a file defining them, and as long as OpCache is running there's very little performance penalty. If you're using a package manager or module loading system to integrate multiple autoloaders, it's generally easy to add one or more required files as part of the package / module config - *for example* Composer has a "files" array in each package's "autoload" config. So the actual assumption is "surely you must be using OpCache", which unlike Composer is bundled with PHP. Regards, -- Rowan Tommins [IMSoP] --000000000000d95055060acf34c5--