RE: [PHP-DEV] [patch] Late static bindings (LSB)

From: Date: Fri, 21 Sep 2007 10:23:49 +0000
Subject: RE: [PHP-DEV] [patch] Late static bindings (LSB)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32415@lists.php.net to get a copy of this message
With static:: you are not able to call method of parent with the same name.

Dmitry.


> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@zend.com] 
> Sent: Friday, September 21, 2007 12:03 PM
> To: Michael Lively
> Cc: Dmitry Stogov; 'Marcus Boerger'; 'Lukas Kahwe Smith'; 
> 'Etienne Kneuss'; internals@lists.php.net; 'Andi Gutmans'
> Subject: Re: [PHP-DEV] [patch] Late static bindings (LSB)
> 
> 
> > class TableSelectExplainBuilder  extends TableSelectBuilder
> > {
> >    static protected function buildSelectQuery()
> >    {
> >        return "EXPLAIN ".parent::buildSelectQuery();
> >    }
> > }
> 
> Why not do static:: instead of parent:: here?
> -- 
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com   http://www.zend.com/
> (408)253-8829   MSN: stas@zend.com
> 


Thread (54 messages)

« previous php.internals (#32415) next »