ID:               33839
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kamil at markowicz dot info
-Status:           Open
+Status:           Feedback
 Bug Type:         Class/Object related
 Operating System: Windows XP SP1
 PHP Version:      4CVS-2005-07-23 (stable)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2005-07-23 21:23:44] kamil at markowicz dot info

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33839&edit=1

Reply via email to