Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84603 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62053 invoked from network); 11 Mar 2015 23:30:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2015 23:30:32 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:37806] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/0D-32765-610D0055 for ; Wed, 11 Mar 2015 18:30:31 -0500 Received: by widem10 with SMTP id em10so28498526wid.2 for ; Wed, 11 Mar 2015 16:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YqqVmh+ciSM7FlReXOgHCem0dYK2kaU2yOAwEtOe6OA=; b=cszDy5NqbtiFzUQzcuTzr3jch+SARL2dbt40DQfp/JB74otTYlYcZbx6QzHb44ZD5e Aem8gXTIkLZR/nNhzKPTkYk9o+w6yAp+m4ew56xiXP1zKYYWLhqVMMlnqSMsn67bcslS jPoLtt2Pnh5e0e1JtdhnTzRvvnYWtnPBT8QxNf/TtlxHfd85g5CvgxugmZTQ/MFmTDRR JdIoC0OcUaDB/q8elxfbcd5BDagHdbNRSe9EZdwBFN9cCm6fFNy/aUDH/NQy9u29298O sPnCI8UHvTknBukSha8vAfcifLoPPwH901yRV0U86mMC4eRiFhhhFjLC98bY/94+Y72/ b5kQ== X-Received: by 10.194.88.131 with SMTP id bg3mr83803791wjb.119.1426116628124; Wed, 11 Mar 2015 16:30:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.101.2 with HTTP; Wed, 11 Mar 2015 16:30:07 -0700 (PDT) In-Reply-To: <6D.2C.32765.10EC0055@pb1.pair.com> References: <6D.2C.32765.10EC0055@pb1.pair.com> Date: Thu, 12 Mar 2015 00:30:07 +0100 Message-ID: To: Johannes Ott Cc: PHP Internals List Content-Type: multipart/alternative; boundary=089e010d849e071cd705110ba7a7 Subject: Re: [PHP-DEV] static constructor From: ocramius@gmail.com (Marco Pivetta) --089e010d849e071cd705110ba7a7 Content-Type: text/plain; charset=UTF-8 On 12 March 2015 at 00:21, Johannes Ott wrote: > The purpose of this suggestion is to introduce a static constructor, > which is called before the first call to class either static or > non-static to initialize some static properties which are needed by the > class. > Hey Johannes, Why can't this be done at autoloading time? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e010d849e071cd705110ba7a7--