Bug #15576: Got "Warning: Problem with method call. Report this bug in xxx.php" error

From: Date: Fri, 15 Feb 2002 19:06:52 +0000
Subject: Bug #15576: Got "Warning: Problem with method call. Report this bug in xxx.php" error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-389@lists.php.net to get a copy of this message
From: wine@bachi.ch Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Class/Object related Bug description: Got "Warning: Problem with method call. Report this bug in xxx.php" error 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 bug report at http://bugs.php.net/?id=15576&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15576&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15576&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15576&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15576&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15576&r=support Expected behavior: http://bugs.php.net/fix.php?id=15576&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15576&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15576&r=submittedtwice

« previous php.bugs (#389) next »