Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74767 invoked from network); 18 Mar 2003 22:25:24 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 18 Mar 2003 22:25:24 -0000 Received: from [192.168.1.100] (unknown [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id EE60425484; Tue, 18 Mar 2003 17:26:32 -0500 (EST) To: Andrei Zmievski Cc: PHP Internals In-Reply-To: <20030318222150.GA9901@hyperion.gravitonic.com> References: <20030318215420.GA8409@hyperion.gravitonic.com> <20030318215701.GA8449@hyperion.gravitonic.com> <1048024128.26326.4.camel@hasele> <20030318221048.GA9149@hyperion.gravitonic.com> <1048024720.26326.9.camel@hasele> <20030318222150.GA9901@hyperion.gravitonic.com> Content-Type: text/plain Organization: Message-ID: <1048025250.26716.19.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 18 Mar 2003 17:07:30 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] function registration patch From: sterling@bumblebury.com (Sterling Hughes) On Tue, 2003-03-18 at 17:21, Andrei Zmievski wrote: > On Tue, 18 Mar 2003, Sterling Hughes wrote: > > You're missing my point. Your patch doesn't allow for one to use > > get_constructor and get_method handlers to implement case-sensitive > > handlers, as you are lowercasing the stuff on insert, the patch is > > limiting. > > I already said that my patch sucks, did you miss that? > yep :) > > I think the best solution is just to play nice with the engine, register > > it as "gtkbutton" or "__constructor" in the code itself. Then, add an > > introspection callback to the engine, which can handle all the accesses > > to function tables, etc. > > That approach has drawbacks. Using "__construct" means breaking BC for > people using my extension, and registering constructor for "GtkButton" > class as "gtkbutton" doesn't work - the constructor is not called. > ahh, that does indeed suck, perhaps there should be a special case in the case sensitivity rules regarding constructors? -Sterling PS: or, *gasp* drop case-sensitivity. For which I'm an enormous +1. :) -- "Programming today is a race between software engineers stirring to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Unknown