Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99092 invoked from network); 17 Aug 2010 07:39:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2010 07:39:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=diogin@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=diogin@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: diogin@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:33363] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/D0-25044-FAC3A6C4 for ; Tue, 17 Aug 2010 03:39:28 -0400 Received: by qyk8 with SMTP id 8so603485qyk.8 for ; Tue, 17 Aug 2010 00:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=0yOoFgTTPkD0UDZVo942WcouT7odZQDEGCDSaqINAEo=; b=E/Zz38OPfHIMiPMUNm6GrK+R9e8jxxTpQQFxnBYDmBpbMQcsm7jyxw5+NP4tKDecNA OA5IM2UExX+cyVyV6wlOpVxBfjkOigE92mxr6cVQt3uPxQLhmZeUDTNVbrAalpdmEvtl t22aWztIzFaHrofNBNkJj6lpy3r72FDWRi/ZE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=J7XKVnBCm4H+XLJuYWy5PB2v4OtZTSPtK+cEHqJzfReiZ2WxCziXKXYaDiAgRg4oCm k7Ov6HnziIBSFSIVJiyRvDpqIQH4059kPT/GkUAuTbQXQiKp+X8+3dPEqdLsOu+h0Pfg i6TEghV5ezaszvV+phI/CyzoZ1RUhDOounG1A= MIME-Version: 1.0 Received: by 10.224.52.132 with SMTP id i4mr4071789qag.178.1282030765681; Tue, 17 Aug 2010 00:39:25 -0700 (PDT) Received: by 10.229.227.141 with HTTP; Tue, 17 Aug 2010 00:39:25 -0700 (PDT) Date: Tue, 17 Aug 2010 15:39:25 +0800 Message-ID: To: php-dev Content-Type: multipart/alternative; boundary=00c09f9db0f8613035048e000cee Subject: Static initialization block support in Class? From: diogin@gmail.com (Jingcheng Zhang) --00c09f9db0f8613035048e000cee Content-Type: text/plain; charset=ISO-8859-1 Hello internals, I wonder whether it is possible to implement "static initialization block" feature in PHP, for example: Currently we have to do this outside the class definition as static variable initialization is only limited to constant values. However in some circumstance, "dynamic" initialization of static variable is expected and meaningful. Thanks in advance! -- Best regards, Jingcheng Zhang P.R.China --00c09f9db0f8613035048e000cee--