ID: 15576
Updated by: [EMAIL PROTECTED]
-Summary: Got "Warning: Problem with method call. Report this
bug in xxx.php" error
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Open
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Sorry, can't - we need to upgrade our software first. Exept the error
msg it works ok, so a '@' solves my problems.
Thx - Martin
Previous Comments:
------------------------------------------------------------------------
[2002-02-16 05:46:33] [EMAIL PROTECTED]
Can't reproduce with the latest CVS. Can you try the latest CVS?
------------------------------------------------------------------------
[2002-02-15 14:06:52] [EMAIL PROTECTED]
Got this rather strange error msg. that asks for a bug report. Ok here
we go, it happens here - when I try to
1. generate an object from class objectFactory,
2. inside a class method,
3. and returning a reference to it (without the reference it worked)
$factory = &objectFactory::install();
class objectFactory
{
...
function &install()
{
global $globar;
if (!$globar[objectFactory])
{
$globar[objectFactory] = new objectFactory();
}
return $globar[objectFactory];
}
}
Hope that helped..
Cheers - Martin
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15576&edit=1