Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86596 invoked by uid 1010); 16 Apr 2007 06:35:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86580 invoked from network); 16 Apr 2007 06:35:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2007 06:35:07 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:29952] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/20-18278-A1913264 for ; Mon, 16 Apr 2007 02:35:06 -0400 Message-ID: <85.20.18278.A1913264@pb1.pair.com> To: internals@lists.php.net Date: Mon, 16 Apr 2007 08:35:00 +0200 User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 References: <461E4437.2090105@pooteeweet.org> <461E5674.5010107@hristov.com> <461EB95D.7030603@zend.com> <461FDD5A.1070004@zend.com> <8E8F0B7F-15EC-41C3-8B19-CB56900F4EE4@gravitonic.com> <461FE21C.10906@zend.com> <461FF396.6070601@zend.com> <38.93.46751.84412264@pb1.pair.com> <4622875A.3040602@zend.com> In-Reply-To: <4622875A.3040602@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] PHP6 todo list From: mike@php.net (Michael Wallner) Stanislav Malyshev wrote: >> Initializing a static class resp. default instance variable with f.e. >> an array is an obvious use case. > > Err, I'm afraid I don't understand neither your abbreviations nor what > the actual use case is. Can you describe real use case - i.e. "module X > has functionality A and B, and to make A work with B I would use > persistent zvals so that when Foo is called Bar happens". > Sorry for the cryptic reply. I think that initializing a static class property as well as initializing a default property with for example an array is an obvious use case. Try to do the following in an extension: class c { static $prop1 = array("foo", "bar"); var $prop2 = array(1,2,3); } Regards, -- Michael