| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2002-02-16 05:46 UTC] sander@php.net
  [2002-02-18 04:23 UTC] wine at bachi dot ch
  [2002-06-01 10:01 UTC] mfischer@php.net
  [2002-08-27 08:06 UTC] arash at yalpani dot de
  | 
    |||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
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