Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37886 invoked by uid 1010); 9 Mar 2004 00:03:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37802 invoked from network); 9 Mar 2004 00:03:13 -0000 Received: from unknown (HELO dmcentral.com) (66.199.115.172) by pb1.pair.com with SMTP; 9 Mar 2004 00:03:13 -0000 Received: from hans (vulcan.americom.com [208.187.207.195]) by dmcentral.com (Postfix) with ESMTP id 35CCBB1074 for ; Mon, 8 Mar 2004 17:04:03 -0700 (MST) Message-ID: <001101c40569$edd10520$2c02a8c0@hans> To: Date: Mon, 8 Mar 2004 17:03:18 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: getInstance and new self() From: jeff@opendbms.com ("Jeffrey Moss") I found this on a zend engine 2 list archive, but didn't see an answer, has it been resolved? I am trying to create a singleton class heirarchy without having to override getInstance.... thekid@friebes:~/devel/php/tests > php5 self.php object(test)#1 (0) { } Expected output would be "object(foo)", so I guess either "self" should not be evaluated at compile time or this should be disallowed. I'd prefer the first:) http://www.zend.com/lists/engine2/200307/msg00033.html