Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y
| From: | (Marcus Boerger) | Date: | Tue, 05 Nov 2002 19:51:09 +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-572@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, Andi Gutmans 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:-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHow 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.