Re: late static binding php6

From: Date: Mon, 19 Nov 2007 22:06:22 +0000
Subject: Re: late static binding php6
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-33336@lists.php.net to get a copy of this message
also that would introduce BC issues. Can you show a use case for BC?
Current implementation: <?php class ActiveRecord { public static function findByPk($id) { var_dump(get_called_class()); // Blog var_dump(get_class()); // ActiveRecord var_dump(__CLASS__); // ActiveRecord } } class Blog extends ActiveRecord {} Blog::findByPk(1); ?> The __CLASS__ and the get_class() is the same like in the current PHP version, and the get_called_class() is not yet introduced. Or do I overlook something? Best Regards, Felhő

« previous php.internals (#33336) next »