Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65034 invoked from network); 18 Mar 2003 22:17:30 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 18 Mar 2003 22:17:30 -0000 Received: from jdi.jdimedia.nl (jdi.jdimedia.nl [212.204.192.51]) by jdi.jdimedia.nl (8.12.4/8.12.4) with ESMTP id h2IMHSjw028910; Tue, 18 Mar 2003 23:17:28 +0100 Date: Tue, 18 Mar 2003 23:17:28 +0100 (CET) X-X-Sender: derick@jdi.jdimedia.nl To: Sterling Hughes cc: Andrei Zmievski , PHP Internals In-Reply-To: <1048024720.26326.9.camel@hasele> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] function registration patch From: derick@php.net (Derick Rethans) On Tue, 18 Mar 2003, Sterling Hughes wrote: > On Tue, 2003-03-18 at 17:10, Andrei Zmievski wrote: > > > > I realize that I can overload get_constructor and get_method handlers > > and do all that stuff. But, seriously, this is screwed up. Given the > > situation where class is "GtkButton", if I specify constructor all > > lowercased, it won't be called at all! If I make it the same as the > > class name, then "parent::GtkButton" stuff stops working. Something must > > be done. > > 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 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. But that doesn't fix the problem, only works around it... Derick -- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------