Re: [PHP-DEV] Re: static:: and PHP 7 (from bug #70997)

2015-11-30 Thread Xinchen Hui
Hey: > On Nov 30, 2015, at 22:48, Rowan Collins wrote: > > Andreas Heigl wrote on 30/11/2015 12:23: >>> Am 30.11.15 um 13:18 schrieb Peter Cowburn: >>> class A { const TEST = false; public function test() { var_dump(static::TEST);

[PHP-DEV] Re: static:: and PHP 7 (from bug #70997)

2015-11-30 Thread Peter Cowburn
On 30 November 2015 at 12:16, Peter Cowburn wrote: > Hi internals, > > I'm looking for some feedback on a change with regard to static::, which > has been present throughout the 7 branch. > > Have a look-see at https://bugs.php.net/bug.php?id=70997 > > > class A { >

Re: [PHP-DEV] Re: static:: and PHP 7 (from bug #70997)

2015-11-30 Thread Andreas Heigl
Am 30.11.15 um 13:18 schrieb Peter Cowburn: > class A { >> const TEST = false; >> public function test() { >> var_dump(static::TEST); >> } >> } >> >> class B extends A { >> const TEST = true; >> >> public function test() { >> A::test(); >> } >> } >> >> $b =

Re: [PHP-DEV] Re: static:: and PHP 7 (from bug #70997)

2015-11-30 Thread Rowan Collins
Andreas Heigl wrote on 30/11/2015 12:23: Am 30.11.15 um 13:18 schrieb Peter Cowburn: class A { const TEST = false; public function test() { var_dump(static::TEST); } } class B extends A { const TEST = true; public function test() { A::test(); }