On Tue, 15 Jun 2004 16:32:55 +0200 Johannes Schlueter <[EMAIL PROTECTED]> wrote:
> Hi, > > that's imho expected behaviour. To quote > http://www.php.net/zend-engine-2.php > | Protected member variables can be accessed in classes extending the > | class they are declared in, whereas private member variables can > | only be accessed by the class they belong to. > > And $id belongs to the base class and not to the extended. What else > should be the difference between private and protected? I just was baffled by the fact, that without setId() in the extended class it works fine. But now I got it, thanks. And sorry for the noise. --- WBR, Antony Dovgal aka tony2001 [EMAIL PROTECTED] || [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php