Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35097 invoked by uid 1010); 12 Oct 2004 21:43:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34448 invoked from network); 12 Oct 2004 21:43:23 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 12 Oct 2004 21:43:23 -0000 Received: (qmail 31287 invoked from network); 12 Oct 2004 21:43:21 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 12 Oct 2004 21:43:21 -0000 Message-ID: <5.1.0.14.2.20041012144209.0498a5f0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 12 Oct 2004 14:43:11 -0700 To: "Robert Silva" , In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] Resubmitted for review From: andi@zend.com (Andi Gutmans) References: We were discussing adding a per class (zend_class_entry *) callback for constants. It might make sense to allow that and if the callback is NULL then try the constant's hash in zend_class_entry. That should solve all cases, right? Andi At 11:54 PM 10/11/2004 -0700, Robert Silva wrote: >This patch allows php extension authors to declare constants on internal >objects. This pretty much just duplicates the zend_declare_property_* >functions but for constants. Currently there is no way for C level class >authors to declare constants on their objects since the engine has to >allocate space for them. > >Bob Silva > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php