Re: PHP-Gtk2 and Reflection

From: Date: Tue, 10 May 2005 13:12:22 +0000
Subject: Re: PHP-Gtk2 and Reflection
References: 1 2 3 4  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1255@lists.php.net to get a copy of this message
> Where does it crash, do you have a backtrace? Can you provide a small > php-gtk source example of it? PHP Warning: PHP-GTK internal error: unsupported type gpointer in /data/php-gtk/two/problems/notebook_switch.php on line 18 /usr/bin/p5: line 2: 7707 Segmentation fault /data/cvs/php/php5cli/bin/php -c /data/cvs/php/php5cli/bin/ $* <?php class Notebooktest extends GtkWindow { public function __construct() { parent::__construct(); $this->connect_object('destroy', array('gtk', 'main_quit')); $notebook = new GtkNotebook(); $this->add($notebook); $notebook->append_page(new GtkLabel('Page1'), new GtkLabel('Label1')); $notebook->append_page(new GtkLabel('Page2'), new GtkLabel('Label2')); $notebook->connect('switch-page', array($this, 'onSwitchNotebookPage')); $this->show_all(); } function onSwitchNotebookPage(GtkNotebook $notebook) { echo 'switch' . "\r\n"; } } new Notebooktest(); Gtk::main(); ?> Regards/MfG, Christian Weiske -- XMMS is playing now: Sarah Connor - Sweet Thang

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