Re: function registration patch
| From: | Andrei Zmievski | Date: | Tue, 18 Mar 2003 22:21:51 +0000 |
| Subject: | Re: function registration patch | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100@lists.php.net to get a copy of this message | ||
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?
> 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.
-Andrei http://www.gravitonic.com/
"Perl - the only language that looks the same
before and after RSA encryption." -Keith Bostic