Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119893 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18754 invoked from network); 11 Apr 2023 01:40:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Apr 2023 01:40:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27C031804D7 for ; Mon, 10 Apr 2023 18:40:47 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 10 Apr 2023 18:40:43 -0700 (PDT) Received: by mail-qt1-f176.google.com with SMTP id fc12so3280422qtb.5 for ; Mon, 10 Apr 2023 18:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681177243; x=1683769243; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=2q4FktCItEeuhZTVdW2ebXvdtIWtJFH6JBNWaIhmOcM=; b=GzxpotsdsZo6aF5ONYVz7PbG7a+5vEAlmGA9yCXJnoCgZS1pPZetRZiDohju8eWxsF j7TKzKwgby4bhjAPCsE9QSFnGiGWCwSypVU/tXK4qJPYtmQsYvTKx98Q5HcRVwbItqEg wgO/5I3hUOvwdiUvv0rWNWPSAAwAmc02MKogYURCxEORFOYbDaO0bjIPxj4yhVTs5r5S +krr1eV2EXzhM6pydIv24Hnr+XPleQmj2xK6+c3RQP7mAebJI0vaj8NtoooNTMKYPjsm 3AGM6KA1Up4SkrZbW87/cEVnL6cK80By1QlrladvVlpp24R2F4WRc7kMAlc9Au/Gaw0w xKBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681177243; x=1683769243; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2q4FktCItEeuhZTVdW2ebXvdtIWtJFH6JBNWaIhmOcM=; b=rqaNkJ7MMwpp6O34VWsMllpS9WKg0xj79OBkIoy104fPIBOlkq4ZLoaiEWjWLNec2L sK1qTYJOd7fvG6L2TsvkrskHV4MONnsT2Lc7SVk+d9BDYjNebL1yWlvVpg/jS+R9K0fH 9X0XqKmwosovCtYszUePkUdpvzGI6Fr87J5lQ+r+HK8yScCS0pWeY+5M9YiAVe5O6ii4 fJxrbkWAHbP/wNRs+L/tnPis5ktZgKeqR8oMHGWq6M8q40upjo55tf82a1SBe/bIHbee ETbSJpO5K99f/S5OCsC7Fwi8q6CDat7pzf6uCnnzafpoiFn5tNAhkg6l3j7gXcpeDDwy WA5w== X-Gm-Message-State: AAQBX9dnWlQI0XUBF8LbFloqeU22Idwtmlz5ruPq46k8SxSoPfe21wBv 7rIQ052b0bSYdSYBKhFkgx22+IUbKJ75NgRaaBt0uUZ+YEM= X-Google-Smtp-Source: AKy350a9JETFHqO7tJN5p4yfMHHa0V9izopfp39+vsxFrlmkgyyRKnup6evPj8h2YgctCJgssKF/twJfsb4ajI03D7A= X-Received: by 2002:ac8:5c03:0:b0:3e3:8455:f307 with SMTP id i3-20020ac85c03000000b003e38455f307mr334502qti.1.1681177242710; Mon, 10 Apr 2023 18:40:42 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 10 Apr 2023 21:40:31 -0400 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000005b362405f90594dc" Subject: [PHP-DEV] PHP Modules From: tendoaki@gmail.com (Michael Morris) --0000000000005b362405f90594dc Content-Type: text/plain; charset="UTF-8" This will be long. I've read over the Future Stability thread and taken it in, and decided to mull over an idea I touched on over a decade ago that I think might help. Also, in the interceding years the JavaScript community has overcome a compatibility issue using this technique, so we might do the same. The crux of the stability problem is the need to update functions without introducing a BC break. Adding in new features without removing old ones also makes it confusing to incoming programmers as to what to use. I propose PHP Modules to hold new features. The existing namespace and functions would be left alone. Existing files would also not be affected - the behavior of PHP modules would be entirely opt in. They would work similar JavaScript modules - they would use the import keyword and the include, require, include_once and require_once directives would pitch an error if used in a PHP module. PHP Modules also would not parse as templates at all - no opening