Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24090 invoked by uid 1010); 26 Mar 2007 22:03:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24075 invoked from network); 26 Mar 2007 22:03:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2007 22:03:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:35365] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/91-07247-03348064 for ; Mon, 26 Mar 2007 17:03:29 -0500 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l2QM3OiQ000701; Mon, 26 Mar 2007 15:03:24 -0700 In-Reply-To: <4608030B.9060904@zend.com> References: <4608030B.9060904@zend.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: Sebastian Bergmann , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Mon, 26 Mar 2007 15:05:06 -0700 To: Stanislav Malyshev X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: ClamAV 0.90.1/2934/Mon Mar 26 13:04:46 2007 on colo X-Virus-Status: Clean Subject: Re: [PHP-DEV] Order of parent and child classes in EG(class_table) From: andrei@gravitonic.com (Andrei Zmievski) What about the case where dl() is used? AFAIK the classes defined in dl()'ed files always go at the end of the class table. -Andrei On Mar 26, 2007, at 10:29 AM, Stanislav Malyshev wrote: >> I am wondering whether a child class is always stored after its >> parent >> class in EG(class_table) because I would like to rely on this >> behaviour >> for the result of get_declared_classes(). > > I think it's not written anywhere it should be so, but in fact it > always would be so since when you are defining child class you have > to have parent already in the class table. So unless some very > nasty extension would define classes in different order, it is > always so. > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php