Re: May News

From: Date: Wed, 18 May 2005 20:31:52 +0000
Subject: Re: May News
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1296@lists.php.net to get a copy of this message
Ugh, so much trouble for so little payoff.. :) On May 18, 2005, at 10:21 AM, Christian Weiske wrote:
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


« previous php.gtk.dev (#1296) next »