Re: implicit public peroperties
| From: | Brad Bulger | Date: | Mon, 08 Sep 2003 20:24:49 +0000 |
| Subject: | Re: implicit public peroperties | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4435@lists.php.net to get a copy of this message | ||
I hope that these fixes don't mean that the following is now
on-purpose behavior:
<?php
class base
{
public $x = 1;
}
class bar extends base
{
public function __construct()
{
var_dump($this->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 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 initial value becasue that make no sense at all.
>
>
> --
> Best regards,
> Marcus mailto:helly@php.net
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>