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
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 {
> //
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 {
> >
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:
>
>
> > 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
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
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