|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-24 01:31 UTC] kamil at markowicz dot info
[2005-08-01 00:45 UTC] sniper@php.net
[2005-08-01 00:46 UTC] sniper@php.net
[2005-12-24 02:28 UTC] sniper@php.net
[2006-01-01 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 04:00:02 2025 UTC |
Description: ------------ I have a class called INIT that stores object of classes in array. When I add a line $this->db = &$db; PHP reports an error. This happens ONLY when I add this line. Then suddenly everywhere, where I called INIT class, PHP gives me this error. Reproduce code: --------------- $db = Instance::get('MySQLConnector'); $db->connectDB($config[db][host], $config[db][user], $config[db][password], $config[db][database]); $this->db = &$db; // THIS IS THIS LINE // creating object of this class $core = Instance::get('Core'); // Intializing Router Class $router = Instance::get('Router'); $_param = $router->parseURL(); Expected result: ---------------- It is suppose to assign DB object to class' varable $db ($this->db = &$db). Actual result: -------------- Warning: Problem with method call - please report this bug in C:\usr\www\ff\class\Core.class.php on line 39 Warning: Problem with method call - please report this bug in C:\usr\www\ff\class\Core.class.php on line 43