Re: Re: Anonymous classes share static space?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 23, 2017 at 12:23 PM, Andrey Repin <anrdaemon@xxxxxxxxxxx>
wrote:

> Ok, then following your statement, this code: https://3v4l.org/Bgjqn
> should yield: D/D… Since objects are of the same class…


No, $c and $d were created from different classes and thus do not share
static properties. That the definitions of the classes are identical is
beside the point. I expect that PHP defines a single anonymous class at
each source location without regard for its properties and methods.

Cheers!
David

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux