|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15576 Got "Warning: Problem with method call. Report this bug in xxx.php" error
Submitted: 2002-02-15 14:06 UTC Modified: 2002-06-01 10:01 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: wine at bachi dot ch Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
33 - 24 = ?
Subscribe to this entry?

 [2002-02-15 14:06 UTC] wine at bachi dot 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-16 05:46 UTC]
Can't reproduce with the latest CVS. Can you try the latest CVS?
 [2002-02-18 04:23 UTC] wine at bachi dot 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-06-01 10:01 UTC]
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

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.

 [2002-08-27 08:06 UTC] arash at yalpani dot de
I have this problem with php4.2.2, when making a static function call.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC