Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107983 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20728 invoked from network); 4 Jan 2020 00:04:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jan 2020 00:04:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BD5DF1804F4 for ; Fri, 3 Jan 2020 14:08:34 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 3 Jan 2020 14:08:33 -0800 (PST) Received: by mail-yb1-f182.google.com with SMTP id v24so19231659ybd.10 for ; Fri, 03 Jan 2020 14:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=MPuUaJKRs0epHxdHbju4i2rAxGUf1kAHHjtV+r2cqx0=; b=gB1Xjrbmv16uVjDOSZyfRxxpXqZengu50bMDzfQhyD3HVNFMq9r4g9iLgUgj/0pBAO apmtQsyHRRn175DDQCuILnUQth2hyWIJxWac5RMuPAvXllSX/lBc9sWjErMo/PNlpjk6 98sEke2kE3QhcicZ8AQOTMXRv47ACjzweZOQBr3Nymg2dLpAc56ogS02ssYhU7d4P5aa /twGKDhH4CXOecMBTQIb28eKddiy5wDzxycI9nluQNZ8sC6gwVrwT1Curan6Qwxsp6Tn i5iOUK+IAN+3g5fqQVdYoeryTzdrMrEjquWqP53ud53AM90+Qz6pPQwFMsknqSdxPmFo nxug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=MPuUaJKRs0epHxdHbju4i2rAxGUf1kAHHjtV+r2cqx0=; b=uWnpJwPp0z+/CVPIj1uUCEp4sgFK8Zce1crE8rhQ/1y9IKVfSA5e01+soCUQTwVi2W SeZaMRjd2KLayvUgSzIxayjxOwvgfetPvf0IsClWYLWUyVcR6ffxuOKxPat1P5VSZfKn HEe3khqQMmjlnZfvU9flDN8MskLlqsvFDDEOd92iiRWu99I0u0h1qfhm8ZKYPP3zV3Pt d6hNbNaiBETS56yq+Cq0ek/KZK97OANPYJetuPJ106KrCRgGA/Q0lfxrzrRf0UPLZE+U x2txWczryU1/ejJq7RYywrp5N+AVoofZ387wcSkhmaFNNQheN2Bsjy28w/ZdcKQxPLAq h7UQ== X-Gm-Message-State: APjAAAVyZCzNdMmzjWN2yH1UY2+j5qCBPHPZUi07aR9CmR1nh65qhbfT +qZjmsfLBiXes3Cc20jOd1dxhR554tlQ5A== X-Google-Smtp-Source: APXvYqyr5GtddTyYbAu07ui6mIzJdf5TyXm9z+QejbJiPBDyaM1llfNPUCb2Ejot2wqUewIxWqOTTg== X-Received: by 2002:a25:8289:: with SMTP id r9mr34475673ybk.162.1578089310979; Fri, 03 Jan 2020 14:08:30 -0800 (PST) Received: from [192.168.1.10] (c-24-131-44-78.hsd1.ga.comcast.net. [24.131.44.78]) by smtp.gmail.com with ESMTPSA id i127sm23908522ywe.65.2020.01.03.14.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2020 14:08:30 -0800 (PST) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_5FD636D0-806D-48C1-8077-162BC6F5734B" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Fri, 3 Jan 2020 17:08:29 -0500 In-Reply-To: Cc: "internals@lists.php.net" To: Rasmus Schultz References: X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] Autoloading functions/consts without a performance impact From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_5FD636D0-806D-48C1-8077-162BC6F5734B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On Jan 3, 2020, at 6:22 AM, Rasmus Schultz wrote: > > I will just briefly mention an alternative idea I've brought up before. > (there's no RFC for this.) > > use function MyClass::myStaticFunction; > > myStaticFunction(); This strikes me as an excellent approach. Well-spent five cents. -Mike --Apple-Mail=_5FD636D0-806D-48C1-8077-162BC6F5734B--