|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-01 10:46 UTC] helly@php.net
[2003-03-01 10:50 UTC] marcot at tabini dot ca
[2003-03-02 08:26 UTC] helly@php.net
[2003-03-02 09:58 UTC] marcot at tabini dot ca
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jan 11 08:00:01 2026 UTC |
Configure: ./configure \ --with-apxs=/usr/local/apache/bin/apxs For example: <? class a { private $c; function __construct() { $this->c = "a::c"; } } class b extends a { private $d; function _construct() { $this->d = 'b::d'; } function test() { echo $this->c; } } $b = new b; //echo $b->d; $b->test(); ?> If executed, The first echo statement returns an error, as expected. The $b->test() call, however, returns `a::c', which I think is incorrect, as it should either not return anything or produce an error, since a::$c is declared as private and should not be available to the b namespace.