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
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 {
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 {
}
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
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.
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