Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y

From: Date: Tue, 05 Nov 2002 19:55:15 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-574@lists.php.net to get a copy of this message
Ok then I will try later if this form fixes Bug #20175... tests/lang/bug20175.phpt At 09:42 05.11.2002, you wrote:
<? 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:
andi            Tue Nov  5 14:37:32 2002 EDT
Modified files:
    /ZendEngine2        zend_compile.c zend_compile.h zend_execute.c
                        zend_language_parser.y
Log: - Add support for static methods. Basically methods which are defined as - static don't have $this. That's the whole difference.
How do you access static class members? marcus
-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.zend-engine.cvs (#574) next »