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

From: Date: Sat, 01 Jun 2002 14:01:23 +0000
Subject: Bug #15576 Updated: Got "Warning: Problem with method call. Report this bug in xxx.php" error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9062@lists.php.net to get a copy of this message
ID: 15576 Updated by: mfischer@php.net Reported By: wine@bachi.ch -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Linux PHP Version: 4.0.6 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-02-18 04:23:26] wine@bachi.ch Sorry, can't - we need to upgrade our software first. Exept the error msg it works ok, so a '@' solves my problems. Thx - Martin ------------------------------------------------------------------------ [2002-02-16 05:46:33] sander@php.net Can't reproduce with the latest CVS. Can you try the latest CVS? ------------------------------------------------------------------------ [2002-02-15 14:06:52] wine@bachi.ch 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

« previous php.bugs (#9062) next »