]> granicus.if.org Git - php/commit
Fix class static members: now the following code works:
authorStanislav Malyshev <stas@php.net>
Wed, 16 Oct 2002 18:29:41 +0000 (18:29 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 16 Oct 2002 18:29:41 +0000 (18:29 +0000)
commitc42ec35331a853d2a1b11700088eef31fc1f907f
treec12e6903ddb5718af0bd456f3ad986601276cabd
parent349b3a096aa677b8ee3977a965b42c187b6a5bc5
Fix class static members: now the following code works:
<?php

class Foo {
         static $c = "Parent";
}

class Child extends Foo {
}

Foo::$c = "Hello";

var_dump(Child::$c);
?>
and returns "Hello" (class statics are not copied anymore, but looked up in
runtime)
Zend/zend_compile.c
Zend/zend_execute.c