[PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Jingcheng Zhang
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" initia

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Richard Quadling
On 17 August 2010 08:39, Jingcheng Zhang wrote: > Hello internals, > > I wonder whether it is possible to implement "static initialization block" > feature in PHP, for example: > > class Foo { > > } > class Bar { >    public static $baz = 'baz'; >    public static $foo; >    static { >        //

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Ferenc Kovacs
Tue, Aug 17, 2010 at 10:04 AM, Richard Quadling wrote: > On 17 August 2010 08:39, Jingcheng Zhang wrote: > > Hello internals, > > > > I wonder whether it is possible to implement "static initialization > block" > > feature in PHP, for example: > > > > > class Foo { > > > > } > > class Bar { > >

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread David Zülke
On 17.08.2010, at 10:46, Ferenc Kovacs wrote: > Tue, Aug 17, 2010 at 10:04 AM, Richard Quadling wrote: > >> On 17 August 2010 08:39, Jingcheng Zhang wrote: >>> Hello internals, >>> >>> I wonder whether it is possible to implement "static initialization >> block" >>> feature in PHP, for example:

Re: [PHP-DEV] 答复: [PHP-DEV] full LFS support

2010-08-17 Thread Ferenc Kovacs
> > > > Hi. > > > > I would like to know what is the current status of the LFS support for > php. > > > > http://bugs.php.net/bug.php?id=27792 > > http://bugs.php.net/bug.php?id=48886 > > > > As far as I can see, there are some patches floating around, but some of > them doesn't work, some of them

Re: [PHP-DEV] Static initialization block support in Class?

2010-08-17 Thread Johannes Schlüter
Hi, On Tue, 2010-08-17 at 10:46 +0200, Ferenc Kovacs wrote: > > > I wonder whether it is possible to implement "static initialization > > block" > > > feature in PHP, for example: As PHP allows code in the global scope I don't think this feature is really needed. Especially as it has some potenti

[PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/run-tests.phpbranches/PHP_5_3/run-tests.php trunk/run-tests.php

2010-08-17 Thread Michael Wallner
On 08/17/2010 05:14 PM, Kalle Sommer Nielsen wrote: Hi Matteo 2010/8/17 Matteo Beccati: Hi Kalle Aren't curly braces deprecated? ;) After reading the manual, yeah in 5.3+ they are. They don't however throw an E_DEPRECATED notice so unless consulting the manual I don't think so many are aware