Re: PHP6 todo list

From: Date: Mon, 16 Apr 2007 06:35:00 +0000
Subject: Re: PHP6 todo list
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-28849@lists.php.net to get a copy of this message
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

« previous php.internals (#28849) next »