Re: May News
| From: | Christian Weiske | Date: | Wed, 18 May 2005 17:21:03 +0000 |
| Subject: | Re: May News | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1295@lists.php.net to get a copy of this message | ||
Hello Andrei,
> How can you reflect a non-existing class? By the time generator runs,
> all the Gtk+ types should be mapped to PHP-GTK types.
That is right. But if there is one enum which isn't mapped, it there
will be the type hint
ZEND_ARG_OBJ_INFO(0, myParameter, SomeEnumClass, 0)
in the generated files.
If you reflect the function now, try to get the parameters and their
type (in our case the non-existant SomeEnumClass), you try to reflect an
undefined class.
> When would you run
> this script, really?
After the generator has been run and php-gtk has been installed. It
tries to find all the classes used as type in ZEND_ARG_OBJ_INFO, and
match them with the classes defined in the running php (so with the
get_declared_classes array). That's IMO the only way to find out if
there is an enum type which hasn't been mapped.
Regards/MfG,
Christian Weiske
--
XMMS is playing now:
Reamonn - Everytime She Goes Away
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc