Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y
| From: | Andi Gutmans | Date: | Tue, 05 Nov 2002 08:42:54 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-571@lists.php.net to get a copy of this message | ||
<?
class MyClass {
static $foo = "Hello\n";
function test()
{
self::check_this();
}
static function check_this()
{
if (!isset($this)) {
print '$this is not set because this is static' . "\n";
} else {
print 'Bug: $this is set' . "\n";
}
print self::$foo;
}
}
$obj = new MyClass();
$obj->test();
Andi
At 08:39 PM 11/5/2002 +0100, Marcus Boerger wrote:
At 20:37 05.11.2002, Andi Gutmans wrote:How do you access static class members? marcusandi Tue Nov 5 14:37:32 2002 EDTModified files:/ZendEngine2 zend_compile.c zend_compile.h zend_execute.c zend_language_parser.yLog: - Add support for static methods. Basically methods which are defined as - static don't have $this. That's the whole difference.