PHP-GTK 2 (currently under development) is based on PHP 5 and Gtk+ 2.
PHP 5 has a brand new object model that solves all the lingering technical
issues and allows for much more powerful control of the Gtk+ 2 interface.
- •
objects are no longer glorified arrays - they are always passed by reference
- •
since objects have destructors, memory is properly cleaned up
- •
no problems with method invocation (even something like $button->get_child()->set_text() is possible)
PHP 5 also adds a number of features to aid OO programming: abstract classes,
interface, private and protected methods and variables, exceptions, and much
more.