Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19805 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37457 invoked by uid 1010); 29 Oct 2005 02:35:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37442 invoked from network); 29 Oct 2005 02:35:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2005 02:35:17 -0000 X-Host-Fingerprint: 198.237.84.92 unknown Linux 2.4/2.6 Received: from ([198.237.84.92:1330] helo=bobsilva.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AF/33-01249-3EFD2634 for ; Fri, 28 Oct 2005 22:35:15 -0400 Received: from [198.237.84.93] (HELO jake) by bobsilva.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 675537 for internals@lists.php.net; Fri, 28 Oct 2005 16:15:54 -0700 To: Date: Fri, 28 Oct 2005 19:35:02 -0700 Message-ID: <001501c5dc31$5cf9a520$5d54edc6@jake> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C5DBF6.B09ACD20" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcXcMVzorR+m3XMbTfeT/DHC/VTuQg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Follow the object constructor chain ... options From: me@bobsilva.com ("Bob Silva") ------=_NextPart_000_0016_01C5DBF6.B09ACD20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit What would be the suggested method of simulating parent::__construct in C-level objects? I looked through the source and could find no examples to draw from. Since my base object is the foundation of my extension, its constructor has to be called on each derived object creation. I have a few ideas that have to do with looping through ce->parent and zend_call_function. Was wondering if you guys can offer some of your experience on how you would approach this problem. Bob Silva ------=_NextPart_000_0016_01C5DBF6.B09ACD20--