|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-21 13:37 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ appears to be problems with class member variable visibility causing application to be completely un-useable, i have also attempted to echo member variables in the same method but they are always blank. Reproduce code: --------------- class system { public $errorobj; public $databaseobj; function __construct() { $this->errorobj = new error($this); $this->databaseobj = new database($this); } } class database { function __construct($system) { $this->system = $system; get_class($this->system->errorobj); } } Expected result: ---------------- should return the object name "error" Actual result: -------------- returns "non-object" error message