Hello internals,
The following code:
bla;
}
}
$o = new b;
print_r($o)
?>
results in two properties which is wrong:
b Object
(
[bla] =>
[bla:protected] =>
)
I tried to fix this bug and found three solutions:
1) when the new class does its inheritance checks it could 'm
Fixed!
At 01:17 28/08/2003, Marcus Börger wrote:
Hello internals,
The following code:
class a {
protected $bla;
}
class b extends a {
public function murks() {
return $this->bla;
}
}
$o = new b;
print_r($o)
?>
results in two properties which is wrong:
b
Hello Zeev,
Friday, August 29, 2003, 10:15:57 AM, you wrote:
> Fixed!
Yes you fixed it for implicit properties and i fixed it for internal
properties. Now we still have to fix it for user space default properties
and static properties. And for static properties we should disallow
overriding the
I hope that these fixes don't mean that the following is now
on-purpose behavior:
x);
}
}
$b = new bar;
?>
Output:
Notice: Undefined property: bar::$x in ack.php on line 10
NULL
On Wed, 3 Sep 2003, Marcus Börger wrote:
> Hello Zeev,
>
> Friday, August 29, 2003, 10:15:57 AM, you wr
Hello Brad,
funny i checked so many complex errors that i overlooked one of the more
obvious errors. In your script an implicit public property would overwrite
an inherited public one. During class inheritance the default value must now
be copied from parent to child. The copy code however also wo