[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: ?php class Foo { } class Bar { public static $baz = 'baz'; public static $foo; static { // After loading this file, self::$foo is initialized as a Foo

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

2010-08-17 Thread Richard Quadling
On 17 August 2010 08:39, Jingcheng Zhang dio...@gmail.com wrote: Hello internals, I wonder whether it is possible to implement static initialization block feature in PHP, for example: ?php 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 rquadl...@gmail.comwrote: On 17 August 2010 08:39, Jingcheng Zhang dio...@gmail.com wrote: Hello internals, I wonder whether it is possible to implement static initialization block feature in PHP, for example: ?php class Foo { }

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 rquadl...@gmail.comwrote: On 17 August 2010 08:39, Jingcheng Zhang dio...@gmail.com wrote: Hello internals, I wonder whether it is possible to implement static initialization block feature in

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 are incomplete.

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 potential